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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin320
RA = 147.244, Dec = 0.3717
tmin = 322272001, tmax = 322531201
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='514664', job_status='RUN', time_executed='2021-09-01 02:44:54.680258', time_epoch_executed='1630489494.68' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='320'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/514664

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/514664/ft1_4FGL_J0948.9+0022_daily_bin320.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/514664/ft2_4FGL_J0948.9+0022_daily_bin320.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/514664/ft1_4FGL_J0948.9+0022_daily_bin320.fits outfile=/scratch/kocevski/514664/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin320.fits ra=147.244 dec=0.3717 rad=12.0 tmin=322272001.0 tmax=322531201.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.59
user 3.27
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/514664/ft1_filtered_4FGL_J0948.9+0022_daily_bin320.fits" evtable="EVENTS" scfile=/scratch/kocevski/514664/ft2_4FGL_J0948.9+0022_daily_bin320.fits sctable="SC_DATA" outfile=/scratch/kocevski/514664/ltcube_322272001_322531201_4FGL_J0948.9+0022_daily_bin320.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/514664/ft2_4FGL_J0948.9+0022_daily_bin320.fits
.....................!
real 12.02
user 11.47
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/514664/ft1_filtered_4FGL_J0948.9+0022_daily_bin320.fits evtable="EVENTS" scfile=/scratch/kocevski/514664/ft2_4FGL_J0948.9+0022_daily_bin320.fits sctable="SC_DATA" expcube=/scratch/kocevski/514664/ltcube_322272001_322531201_4FGL_J0948.9+0022_daily_bin320.fits outfile=/scratch/kocevski/514664/expmap_322272001_322531201_4FGL_J0948.9+0022_daily_bin320.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/514664/ltcube_322272001_322531201_4FGL_J0948.9+0022_daily_bin320.fits
.....................!
real 190.27
user 185.19
sys 4.13

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/514664/ft1_filtered_4FGL_J0948.9+0022_daily_bin320.fits scfile=/scratch/kocevski/514664/ft2_4FGL_J0948.9+0022_daily_bin320.fits outfile=/scratch/kocevski/514664/cmap_322272001_322531201_4FGL_J0948.9+0022_daily_bin320.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/514664/ft1_filtered_4FGL_J0948.9+0022_daily_bin320.fits scfile=/scratch/kocevski/514664/ft2_4FGL_J0948.9+0022_daily_bin320.fits outfile=/scratch/kocevski/514664/cmap_HighResolution_322272001_322531201_4FGL_J0948.9+0022_daily_bin320.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.64
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.384       1.0000         .10000E-03   10000.    
     2 'norm      '    1.1889       1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.476       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10566E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.5646       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.7605       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10771E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    5.3405       1.0000         .10000E-03   10000.    
    10 'norm      '    2.0231       1.0000         .10000E-03   10000.    
    11 'norm      '    3.2452       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.663       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10507E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .11457E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    22.074       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.9637       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .13710E-02   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.3393       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .74422       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=   6085.070     FROM MIGRAD    STATUS=CONVERGED    525 CALLS     2579 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.384        5.4837        .14996E-06    .53765E-03
   2  norm          1.1967        7.3706        .72683E-05   -.37931E-03
   3  Prefactor     17.459        22.071        .20715E-06    .13930E-03
   4  Prefactor     .10000E-03    1.9706       -.10444E-05** at limit **
   5  Prefactor     4.5704        25.283       -.12078E-07   -.10059E-06
   6  Prefactor     8.7628        16.809        .58586E-06    .35639E-04
   7  Prefactor     .10000E-03    22.482        .11452E-05** at limit **
   8  norm          .10000E-03    3.5850        .27270E-05** at limit **
   9  norm          5.3406        1.8590        .70972E-07    .14503E-04
  10  norm          2.0231        .80154        .66503E-07    .46739E-03
  11  norm          3.2452        1.9983        .13092E-06    .59744E-03
  12  Prefactor     11.665        11.803       -.13041E-05   -.59572E-03
  13  Prefactor     .10000E-03    13.637       -.11619E-05** at limit **
  14  Prefactor     .10000E-03    66.682       -.18813E-05** at limit **
  15  norm          .10001E-03    22.756        .72661E-05** at limit **
  16  Prefactor     .10000E-03    3.0848        .11080E-05** at limit **
  17  Prefactor     22.036        53.992        .59666E-05    .12515E-03
  18  Prefactor     .10000E-03    15.321        .21282E-05** at limit **
  19  Prefactor     .10000E-03    5.1783        .73799E-06** at limit **
  20  norm          1.9633        1.7806        .18279E-06    .24586E-03
  21  Prefactor     .10000E-03    14.486        .92080E-05** at limit **
  22  Normalizat    1.3394        .24427       -.37082E-05    .72780E-03
  23  Prefactor     .74416        .17389        .37657E-05    .11361E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 12.3837
  norm       = 1.19669
  Prefactor  = 17.4595
  Prefactor  = 0.000100001
  Prefactor  = 4.57038
  Prefactor  = 8.76282
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 5.34056
  norm       = 2.02309
  norm       = 3.24521
  Prefactor  = 11.6647
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  norm       = 0.000100011
  Prefactor  = 0.0001
  Prefactor  = 22.0363
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 1.9633
  Prefactor  = 0.000100004
  Normalizat = 1.33935
  Prefactor  = 0.744159
 **********
 **   18 **HESSE 
 **********

 FCN=   6085.070     FROM HESSE     STATUS=OK           372 CALLS     2951 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.384        5.4861        .11383E-03   -1.5004    
   2  norm          1.1967        11.859        .20900E-02   -1.5489    
   3  Prefactor     17.459        22.149        .95807E-04   -1.4872    
   4  Prefactor     .10000E-03    12.039        .20370E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.5704        25.196        .18842E-03   -1.5280    
   6  Prefactor     8.7628        16.744        .13543E-03   -1.5116    
   7  Prefactor     .10000E-03    22.572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    23.949        .23409E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.3406        1.8605        .59837E-04   -1.5246    
  10  norm          2.0231        .79730        .41170E-04   -1.5423    
  11  norm          3.2452        1.9960        .83516E-04   -1.5348    
  12  Prefactor     11.665        11.999        .11730E-03   -1.5025    
  13  Prefactor     .10000E-03    13.682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    67.449        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10001E-03    23.996        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.1079        .13423E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     22.036        54.104        .85254E-04   -1.4769    
  18  Prefactor     .10000E-03    15.403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.1884        .17350E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.9633        1.7595        .93019E-04   -1.5428    
  21  Prefactor     .10000E-03    33.822        .30832E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.3394        .25898        .26086E-03   -.82399    
  23  Prefactor     .74416        .18204        .25760E-03   -1.0182    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.75373e-09
Minuit parameter uncertainties:
  1  5.48633
  2  7.53598
  3  22.1599
  4  0.000199464
  5  21.4756
  6  16.7531
  7  0.000264745
  8  0.000210222
  9  1.86056
  10  0.797307
  11  1.99601
  12  12.0019
  13  0.00018675
  14  0.000471721
  15  0.00100802
  16  6.14612e-05
  17  54.225
  18  0.000307173
  19  5.08814e-05
  20  1.75955
  21  0.000704042
  22  0.259232
  23  0.182182
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  2.023e+00  7.973e-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:  7.442e-01  1.822e-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.339e+00  2.592e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.84
Ra Dec: 147.244 0.372
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 1.55e-07 +/- 6.12e-08
Energy Flux (Fixed Index): 3.87e-05 +/- 1.53e-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) = 6084.82940291
delta logL = 0.24020249757

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6084.82926028
delta logL = 0.24034513095

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0333       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8555       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2966       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77087       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=   6084.829     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      204 TOTAL
                     EDM=   .98E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0334        14.600        .72521E-02   -.55748E-03
   2  alpha         2.8555        2.9897        .39171        .18248E-04
   3  Normalizat    1.2966        .22473        .59758E-01    .67553E-05
   4  Prefactor     .77087        .28531        .43337E-01    .15278E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.03336
  alpha      = 2.85547
  Normalizat = 1.29658
  Prefactor  = 0.77087
 **********
 **   18 **HESSE 
 **********

 FCN=   6084.829     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .47E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0334        .78999        .39535E-04   -1.5423    
   2  alpha         2.8555        .59661        .15864E-01    .14267    
   3  Normalizat    1.2966        .24484        .26429E-03   -.83669    
   4  Prefactor     .77087        .18364        .25357E-03   -1.0081    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.6793e-11
Minuit parameter uncertainties:
  1  0.789989
  2  0.602549
  3  0.245058
  4  0.183784
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/514664': 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) = 6084.82926028
delta logL = 0.240345131427

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  2.033e+00  7.900e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  2.855e+00  6.025e-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.709e-01  1.838e-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.297e+00  2.451e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.26
Ra Dec: 147.244 0.372
Photon Index (Free Index): 2.86 +/- 0.60
Photon Flux (Free Index): 1.85e-07 +/- 7.80e-08
Energy Flux (Free Index): 3.77e-05 +/- 1.43e-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/514664/cmap_HighResolution_322272001_322531201_4FGL_J0948.9+0022_daily_bin320.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.55e-07', energy_flux2='3.77e-05', photon_flux_error='6.12e-08', dlogl='2.40e-01', energy_flux='3.87e-05', photon_flux2='1.85e-07', job_status='DONE', time_completed='2021-09-01 02:53:59.235751', photon_index_error2='0.60', photon_index2='2.86', ts='11.84', fit_tolerance='1e-08', GAL='0.74', photon_index_error='0.00', energy_flux_error2='1.43e-05', EG='1.34', time_epoch_completed='1630490039.24', return_code='0', job_id='514664', GAL2='0.77', EG2='1.30', return_code2='0', energy_flux_error='1.53e-05', photon_flux_error2='7.80e-08', ts2='12.26', photon_index='2.45' WHERE bin_id='320' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:53:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0287>
Subject: Job 514664: <4FGL_J0948.9+0022_daily_bin320> in cluster <slac> Done

Job <4FGL_J0948.9+0022_daily_bin320> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 02:40:44 2021
Job was executed on host(s) <bullet0287>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 02:40:46 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:40:46 2021
Terminated at Wed Sep  1 02:54:00 2021
Results reported at Wed Sep  1 02:54:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin320 147.244 0.3717 322272001 322531201 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 :                                   536.23 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             241.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   793 sec.
    Turnaround time :                            796 sec.

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

