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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin141
RA = 147.244, Dec = 0.3717
tmin = 275875201, tmax = 276134401
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='513202', job_status='RUN', time_executed='2021-09-01 02:36:30.662471', time_epoch_executed='1630488990.66' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='141'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/513202

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

Retrieving the FT1 file...

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

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

Retrieving 42 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/513202/ft1_4FGL_J0948.9+0022_daily_bin141.fits


Retrieving the FT1 file...

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

Retrieving 42 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/513202/ft2_4FGL_J0948.9+0022_daily_bin141.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/513202/ft1_4FGL_J0948.9+0022_daily_bin141.fits outfile=/scratch/kocevski/513202/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin141.fits ra=147.244 dec=0.3717 rad=12.0 tmin=275875201.0 tmax=276134401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.20
user 2.96
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/513202/ft2_4FGL_J0948.9+0022_daily_bin141.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/513202/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin141.fits evtable="EVENTS" outfile="/scratch/kocevski/513202/ft1_filtered_4FGL_J0948.9+0022_daily_bin141.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.50
user 0.33
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/513202/ft1_filtered_4FGL_J0948.9+0022_daily_bin141.fits" evtable="EVENTS" scfile=/scratch/kocevski/513202/ft2_4FGL_J0948.9+0022_daily_bin141.fits sctable="SC_DATA" outfile=/scratch/kocevski/513202/ltcube_275875201_276134401_4FGL_J0948.9+0022_daily_bin141.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/513202/ft2_4FGL_J0948.9+0022_daily_bin141.fits
.....................!
real 10.69
user 10.20
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/513202/ft1_filtered_4FGL_J0948.9+0022_daily_bin141.fits evtable="EVENTS" scfile=/scratch/kocevski/513202/ft2_4FGL_J0948.9+0022_daily_bin141.fits sctable="SC_DATA" expcube=/scratch/kocevski/513202/ltcube_275875201_276134401_4FGL_J0948.9+0022_daily_bin141.fits outfile=/scratch/kocevski/513202/expmap_275875201_276134401_4FGL_J0948.9+0022_daily_bin141.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/513202/ltcube_275875201_276134401_4FGL_J0948.9+0022_daily_bin141.fits
.....................!
real 190.40
user 185.46
sys 4.31

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/513202/ft1_filtered_4FGL_J0948.9+0022_daily_bin141.fits scfile=/scratch/kocevski/513202/ft2_4FGL_J0948.9+0022_daily_bin141.fits outfile=/scratch/kocevski/513202/cmap_275875201_276134401_4FGL_J0948.9+0022_daily_bin141.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.57
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/513202/ft1_filtered_4FGL_J0948.9+0022_daily_bin141.fits scfile=/scratch/kocevski/513202/ft2_4FGL_J0948.9+0022_daily_bin141.fits outfile=/scratch/kocevski/513202/cmap_HighResolution_275875201_276134401_4FGL_J0948.9+0022_daily_bin141.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.63
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.497       1.0000         .10000E-03   10000.    
     2 'norm      '    14.284       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .34050       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11349E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.0200       1.0000         .10000E-03   10000.    
     8 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.3245       1.0000         .10000E-03   10000.    
    10 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.3423       1.0000         .10000E-03   10000.    
    12 'Prefactor '    21.857       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    41.436       1.0000         .10000E-03   10000.    
    15 'norm      '    .11726E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    17.101       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11113E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    45.610       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10264E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .87644       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.5445       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .80775       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0436       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=   5172.100     FROM MIGRAD    STATUS=CONVERGED    564 CALLS     2626 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.496        5.2654        .45601E-07   -.84877E-04
   2  norm          14.296        8.0678       -.21605E-05   -.35994E-04
   3  Prefactor     .53739E-02    15.015        .31635E-06    .11223E-04
   4  Prefactor     .10000E-03    2.1565       -.61789E-07** at limit **
   5  Prefactor     .10000E-03    17.360       -.33237E-06** at limit **
   6  Prefactor     .10000E-03    9.4756       -.33015E-06** at limit **
   7  Prefactor     4.0159        36.982        .76662E-05   -.27775E-04
   8  norm          .10000E-03    4.4983       -.18865E-06** at limit **
   9  norm          1.3233        1.5015       -.28494E-06   -.74677E-03
  10  norm          .10000E-03    .39151       -.37306E-07** at limit **
  11  norm          2.3414        2.0469       -.37887E-07   -.19156E-03
  12  Prefactor     21.831        15.403        .20004E-05    .22926E-04
  13  Prefactor     .10000E-03    12.344        .11793E-05** at limit **
  14  Prefactor     41.411        36.358       -.88367E-05    .17109E-04
  15  norm          .10000E-03    38.026       -.17417E-05** at limit **
  16  Prefactor     17.093        16.115        .16539E-04   -.21633E-04
  17  Prefactor     .10000E-03    69.202       -.80238E-06** at limit **
  18  Prefactor     45.549        68.172       -.40702E-04    .29478E-04
  19  Prefactor     .10000E-03    12.700       -.54508E-06** at limit **
  20  norm          .87568        1.2550        .97795E-07   -.69275E-04
  21  Prefactor     2.5407        6.8578       -.50445E-05   -.43595E-03
  22  Normalizat    .80828        .21213        .72311E-06    .17567E-05
  23  Prefactor     1.0436        .16046        .18480E-06    .38326E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 10.4957
  norm       = 14.2958
  Prefactor  = 0.0053739
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.01591
  norm       = 0.0001
  norm       = 1.32332
  norm       = 0.0001
  norm       = 2.34142
  Prefactor  = 21.8312
  Prefactor  = 0.0001
  Prefactor  = 41.4106
  norm       = 0.000100004
  Prefactor  = 17.0931
  Prefactor  = 0.0001
  Prefactor  = 45.5493
  Prefactor  = 0.0001
  norm       = 0.875682
  Prefactor  = 2.54072
  Normalizat = 0.808278
  Prefactor  = 1.04357
 **********
 **   18 **HESSE 
 **********

 FCN=   5172.100     FROM HESSE     STATUS=OK           386 CALLS     3012 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.496        5.2641        .11135E-03   -1.5060    
   2  norm          14.296        8.0701        .10598E-03   -1.4952    
   3  Prefactor     .53739E-02    24.558        .77630E-01   -1.5693    
   4  Prefactor     .10000E-03    5.2252        .20398E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    17.371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.5159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.0159        36.817        .20113E-03   -1.5307    
   8  norm          .10000E-03    4.6407        .29752E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.3233        1.4825        .88742E-04   -1.5478    
  10  norm          .10000E-03    .70042        .85740E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.3414        2.0373        .92766E-04   -1.5402    
  12  Prefactor     21.831        15.392        .85676E-04   -1.4773    
  13  Prefactor     .10000E-03    12.351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     41.411        36.321        .62274E-04   -1.4420    
  15  norm          .10000E-03    39.107        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     17.093        16.049        .96853E-04   -1.4881    
  17  Prefactor     .10000E-03    69.364        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     45.549        67.926        .59367E-04   -1.4357    
  19  Prefactor     .10000E-03    12.712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .87568        1.1161        .91909E-03   -1.5521    
  21  Prefactor     2.5407        6.8685        .25600E-03   -1.5389    
  22  Normalizat    .80828        .24562        .29008E-03   -.99762    
  23  Prefactor     1.0436        .18864        .20799E-03   -.91291    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.45269e-09
Minuit parameter uncertainties:
  1  5.2643
  2  8.07075
  3  0.720068
  4  9.86762e-06
  5  4.5722e-07
  6  9.50412e-07
  7  24.3387
  8  1.36783e-05
  9  1.48253
  10  4.12188e-06
  11  2.03739
  12  15.3948
  13  2.3929e-05
  14  36.3403
  15  0.000779257
  16  16.0534
  17  0.000266916
  18  68.0416
  19  2.68284e-05
  20  1.11614
  21  6.87065
  22  0.24596
  23  0.188759
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.000e-04  4.122e-06  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.044e+00  1.888e-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:  8.083e-01  2.460e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/513202/likelihoodResults_275875201_276134401_4FGL_J0948.9+0022_daily_bin141.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) = 5172.09994622
delta logL = -0.000207859696275

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5172.09972869
delta logL = 9.6616195151e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.3651       1.0000          .0000       5.0000    
     3 'Normalizat'    .80830       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0436       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=   5172.100     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      282 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.5483        .81640E-03** at limit **
   2  alpha         2.9842        3.5017        .17922        .14127E-06
   3  Normalizat    .80828        .23126        .29008E-03    .19626E-02
   4  Prefactor     1.0436        .18748        .20799E-03    .28282E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.98417
  Normalizat = 0.808279
  Prefactor  = 1.04358
 **********
 **   18 **HESSE 
 **********

 FCN=   5172.100     FROM HESSE     STATUS=OK            25 CALLS      307 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .93405        .16328E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.9842        3.3525        .71687E-02    .19490    
   3  Normalizat    .80828        .23139        .58016E-04   -.99762    
   4  Prefactor     1.0436        .18763        .41599E-04   -.91291    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.3272e-09
Minuit parameter uncertainties:
  1  1.30654e-05
  2  94.1926
  3  0.231674
  4  0.187748
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/513202': 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) = 5172.09972066
delta logL = 1.76913927135e-05

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.000e-04  1.307e-05  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  2.984e+00  9.419e+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.044e+00  1.877e-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:  8.083e-01  2.317e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 147.244 0.372

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/513202/cmap_HighResolution_275875201_276134401_4FGL_J0948.9+0022_daily_bin141.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.58e-05', job_status='DONE', photon_flux_upper_limit='1.03e-07', time_completed='2021-09-01 02:45:36.620406', job_id='513202', GAL2='1.04', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1630489536.62', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='1.77e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='141' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:45:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0170>
Subject: Job 513202: <4FGL_J0948.9+0022_daily_bin141> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin141 147.244 0.3717 275875201 276134401 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 :                                   542.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             342.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   564 sec.
    Turnaround time :                            567 sec.

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

