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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin120
RA = 147.244, Dec = 0.3717
tmin = 270432001, tmax = 270691201
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='513171', job_status='RUN', time_executed='2021-09-01 02:36:23.383422', time_epoch_executed='1630488983.38' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='120'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/513171

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/513171/ft1_4FGL_J0948.9+0022_daily_bin120.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/513171/ft2_4FGL_J0948.9+0022_daily_bin120.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/513171/ft1_4FGL_J0948.9+0022_daily_bin120.fits outfile=/scratch/kocevski/513171/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin120.fits ra=147.244 dec=0.3717 rad=12.0 tmin=270432001.0 tmax=270691201.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.65
user 1.45
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/513171/ft1_filtered_4FGL_J0948.9+0022_daily_bin120.fits" evtable="EVENTS" scfile=/scratch/kocevski/513171/ft2_4FGL_J0948.9+0022_daily_bin120.fits sctable="SC_DATA" outfile=/scratch/kocevski/513171/ltcube_270432001_270691201_4FGL_J0948.9+0022_daily_bin120.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/513171/ft2_4FGL_J0948.9+0022_daily_bin120.fits
.....................!
real 12.35
user 11.95
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/513171/ft1_filtered_4FGL_J0948.9+0022_daily_bin120.fits evtable="EVENTS" scfile=/scratch/kocevski/513171/ft2_4FGL_J0948.9+0022_daily_bin120.fits sctable="SC_DATA" expcube=/scratch/kocevski/513171/ltcube_270432001_270691201_4FGL_J0948.9+0022_daily_bin120.fits outfile=/scratch/kocevski/513171/expmap_270432001_270691201_4FGL_J0948.9+0022_daily_bin120.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/513171/ltcube_270432001_270691201_4FGL_J0948.9+0022_daily_bin120.fits
.....................!
real 190.38
user 185.31
sys 4.58

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/513171/ft1_filtered_4FGL_J0948.9+0022_daily_bin120.fits scfile=/scratch/kocevski/513171/ft2_4FGL_J0948.9+0022_daily_bin120.fits outfile=/scratch/kocevski/513171/cmap_270432001_270691201_4FGL_J0948.9+0022_daily_bin120.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.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    14.161       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12490E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.276       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.5513       1.0000         .10000E-03   10000.    
     9 'norm      '    .13552       1.0000         .10000E-03   10000.    
    10 'norm      '    1.8778       1.0000         .10000E-03   10000.    
    11 'norm      '    .88285       1.0000         .10000E-03   10000.    
    12 'Prefactor '    24.727       1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.603       1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.378       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    50.590       1.0000         .10000E-03   10000.    
    17 'Prefactor '    52.814       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .11250E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.7408       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .71758       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.3088       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=   9080.505     FROM MIGRAD    STATUS=CONVERGED    528 CALLS     2601 TOTAL
                     EDM=   .89E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.4643        .10671E-06** at limit **
   2  norm          14.160        6.2065        .29495E-06   -.14510E-03
   3  Prefactor     .10000E-03    3.6997        .50531E-07** at limit **
   4  Prefactor     .10000E-03    2.5643        .30316E-06** at limit **
   5  Prefactor     .10000E-03    10.602        .15121E-06** at limit **
   6  Prefactor     16.280        13.132        .31655E-07   -.61667E-04
   7  Prefactor     .10000E-03    6.5598        .92454E-08** at limit **
   8  norm          1.5505        2.2513        .16751E-06   -.12388E-03
   9  norm          .13505        .52347       -.24035E-08    .21129E-03
  10  norm          1.8776        .61374        .22134E-07   -.77529E-04
  11  norm          .88286        1.5461        .56553E-06    .34982E-03
  12  Prefactor     24.726        13.400        .86311E-07   -.18837E-04
  13  Prefactor     12.606        26.066        .12502E-05    .58423E-04
  14  Prefactor     13.337        23.642       -.54662E-05   -.51762E-03
  15  norm          .10000E-03    4.8713       -.28939E-07** at limit **
  16  Prefactor     50.594        14.970        .20515E-06    .49836E-04
  17  Prefactor     52.798        59.377       -.19072E-05   -.13751E-03
  18  Prefactor     .10000E-03    45.424        .10293E-05** at limit **
  19  Prefactor     .10000E-03    22.563       -.35600E-06** at limit **
  20  norm          .10000E-03    .52554       -.21567E-06** at limit **
  21  Prefactor     5.7400        5.1962        .32218E-05   -.80513E-03
  22  Normalizat    .71776        .17949        .10967E-07   -.20138E-04
  23  Prefactor     1.3088        .13937       -.76461E-06    .10384E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 14.1597
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.2797
  Prefactor  = 0.0001
  norm       = 1.5505
  norm       = 0.13505
  norm       = 1.87763
  norm       = 0.882861
  Prefactor  = 24.7255
  Prefactor  = 12.6064
  Prefactor  = 13.3369
  norm       = 0.0001
  Prefactor  = 50.5935
  Prefactor  = 52.7979
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.74002
  Normalizat = 0.717758
  Prefactor  = 1.30884
 **********
 **   18 **HESSE 
 **********

 FCN=   9080.505     FROM HESSE     STATUS=OK           374 CALLS     2975 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.4914        .11256E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          14.160        6.2078        .53219E-03   -1.4955    
   3  Prefactor     .10000E-03    3.7038        .17900E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.6751        .29752E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     16.280        13.138        .99277E-04   -1.4901    
   7  Prefactor     .10000E-03    6.5635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.5505        2.2223        .16650E-03   -1.5459    
   9  norm          .13505        1.9413        .12628E-02   -1.5634    
  10  norm          1.8776        .61008        .40204E-04   -1.5434    
  11  norm          .88286        1.3958        .15129E-02   -1.5520    
  12  Prefactor     24.726        13.395        .80557E-04   -1.4713    
  13  Prefactor     12.606        26.153        .11283E-03   -1.4998    
  14  Prefactor     13.337        25.038        .10951E-03   -1.4977    
  15  norm          .10000E-03    4.8729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     50.594        14.944        .56383E-04   -1.4284    
  17  Prefactor     52.798        59.848        .55190E-04   -1.4253    
  18  Prefactor     .10000E-03    45.556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    22.757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    3.1153        .13099E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.7400        5.2871        .83818E-03   -1.5229    
  22  Normalizat    .71776        .20751        .33504E-03   -1.0320    
  23  Prefactor     1.3088        .16318        .21384E-03   -.83045    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.03215e-09
Minuit parameter uncertainties:
  1  4.66429e-07
  2  6.20805
  3  2.55212e-07
  4  1.97364e-06
  5  1.08221e-05
  6  13.1408
  7  3.33343e-06
  8  2.22241
  9  1.02373
  10  0.610085
  11  1.39581
  12  13.3968
  13  26.177
  14  25.0574
  15  5.49321e-06
  16  14.9453
  17  59.9158
  18  0.000415275
  19  4.61864e-05
  20  4.00575e-05
  21  5.28749
  22  0.207741
  23  0.163247
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.878e+00  6.101e-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.309e+00  1.632e-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.178e-01  2.077e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 18.41
Ra Dec: 147.244 0.372
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 1.44e-07 +/- 4.68e-08
Energy Flux (Fixed Index): 3.59e-05 +/- 1.17e-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) = 9080.42922959
delta logL = 0.076044115438

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9080.42513708
delta logL = 0.0801366246251

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8500       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2943       1.0000          .0000       5.0000    
     3 'Normalizat'    .73289       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2991       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=   9080.425     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      206 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8500        .63809        .76633E-02    .73526E-03
   2  alpha         2.2943        .36702        .31744       -.85924E-04
   3  Normalizat    .73288        .16631        .74979E-01    .28538E-04
   4  Prefactor     1.2991        .13878        .48523E-01    .19687E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.85001
  alpha      = 2.29432
  Normalizat = 0.732881
  Prefactor  = 1.29906
 **********
 **   18 **HESSE 
 **********

 FCN=   9080.425     FROM HESSE     STATUS=OK            31 CALLS      237 TOTAL
                     EDM=   .75E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8500        .61282        .40325E-04   -1.5436    
   2  alpha         2.2943        .38704        .12913E-01   -.82363E-01
   3  Normalizat    .73288        .19640        .33189E-03   -1.0261    
   4  Prefactor     1.2991        .16320        .21450E-03   -.83335    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.51955e-11
Minuit parameter uncertainties:
  1  0.612825
  2  0.388618
  3  0.196587
  4  0.163263
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/513171': 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) = 9080.42513708
delta logL = 0.0801366276373

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.850e+00  6.128e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  2.294e+00  3.886e-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.299e+00  1.633e-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.329e-01  1.966e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 18.44
Ra Dec: 147.244 0.372
Photon Index (Free Index): 2.29 +/- 0.39
Photon Flux (Free Index): 1.35e-07 +/- 4.99e-08
Energy Flux (Free Index): 3.73e-05 +/- 1.27e-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/513171/cmap_HighResolution_270432001_270691201_4FGL_J0948.9+0022_daily_bin120.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.44e-07', energy_flux2='3.73e-05', photon_flux_error='4.68e-08', dlogl='8.01e-02', energy_flux='3.59e-05', photon_flux2='1.35e-07', job_status='DONE', time_completed='2021-09-01 02:47:26.220319', photon_index_error2='0.39', photon_index2='2.29', ts='18.41', fit_tolerance='1e-08', GAL='1.31', photon_index_error='0.00', energy_flux_error2='1.27e-05', EG='0.72', time_epoch_completed='1630489646.22', return_code='0', job_id='513171', GAL2='1.30', EG2='0.73', return_code2='0', energy_flux_error='1.17e-05', photon_flux_error2='4.99e-08', ts2='18.44', photon_index='2.45' WHERE bin_id='120' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:47:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0149>
Subject: Job 513171: <4FGL_J0948.9+0022_daily_bin120> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin120 147.244 0.3717 270432001 270691201 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 :                                   655.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             389.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   676 sec.
    Turnaround time :                            679 sec.

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

