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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin136
RA = 147.244, Dec = 0.3717
tmin = 274579201, tmax = 274838401
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='513194', job_status='RUN', time_executed='2021-09-01 02:39:11.572363', time_epoch_executed='1630489151.57' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='136'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/513194

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/513194/ft1_4FGL_J0948.9+0022_daily_bin136.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/513194/ft2_4FGL_J0948.9+0022_daily_bin136.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/513194/ft1_4FGL_J0948.9+0022_daily_bin136.fits outfile=/scratch/kocevski/513194/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin136.fits ra=147.244 dec=0.3717 rad=12.0 tmin=274579201.0 tmax=274838401.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.60
user 3.34
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/513194/ft1_filtered_4FGL_J0948.9+0022_daily_bin136.fits" evtable="EVENTS" scfile=/scratch/kocevski/513194/ft2_4FGL_J0948.9+0022_daily_bin136.fits sctable="SC_DATA" outfile=/scratch/kocevski/513194/ltcube_274579201_274838401_4FGL_J0948.9+0022_daily_bin136.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/513194/ft2_4FGL_J0948.9+0022_daily_bin136.fits
.....................!
real 11.80
user 11.27
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/513194/ft1_filtered_4FGL_J0948.9+0022_daily_bin136.fits evtable="EVENTS" scfile=/scratch/kocevski/513194/ft2_4FGL_J0948.9+0022_daily_bin136.fits sctable="SC_DATA" expcube=/scratch/kocevski/513194/ltcube_274579201_274838401_4FGL_J0948.9+0022_daily_bin136.fits outfile=/scratch/kocevski/513194/expmap_274579201_274838401_4FGL_J0948.9+0022_daily_bin136.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/513194/ltcube_274579201_274838401_4FGL_J0948.9+0022_daily_bin136.fits
.....................!
real 191.90
user 186.29
sys 4.61

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/513194/ft1_filtered_4FGL_J0948.9+0022_daily_bin136.fits scfile=/scratch/kocevski/513194/ft2_4FGL_J0948.9+0022_daily_bin136.fits outfile=/scratch/kocevski/513194/cmap_274579201_274838401_4FGL_J0948.9+0022_daily_bin136.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.36
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.1673       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    39.854       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.8881       1.0000         .10000E-03   10000.    
    10 'norm      '    .10114E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .11196E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.269       1.0000         .10000E-03   10000.    
    17 'Prefactor '    46.324       1.0000         .10000E-03   10000.    
    18 'Prefactor '    53.149       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10187E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .62222       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1354       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0816       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=   6869.001     FROM MIGRAD    STATUS=CONVERGED    516 CALLS     2648 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.1672        4.5174        .21932E-05    .97038E-03
   2  norm          .10000E-03    2.3477       -.19974E-07** at limit **
   3  Prefactor     .10000E-03    5.4891        .24014E-06** at limit **
   4  Prefactor     .10000E-03    2.3796       -.55730E-08** at limit **
   5  Prefactor     39.856        34.487        .32913E-06    .76496E-04
   6  Prefactor     .10000E-03    17.156        .96782E-06** at limit **
   7  Prefactor     .10000E-03    34.033       -.24710E-06** at limit **
   8  norm          .10018E-03    2.7223       -.18391E-05** at limit **
   9  norm          3.8881        1.8445        .65892E-07   -.43958E-04
  10  norm          .10000E-03    .24575        .18478E-08** at limit **
  11  norm          .10001E-03    .98561        .59370E-06** at limit **
  12  Prefactor     .10000E-03    6.3892       -.15114E-06** at limit **
  13  Prefactor     .10000E-03    5.8621       -.65638E-07** at limit **
  14  Prefactor     .10000E-03    6.2730       -.14305E-06** at limit **
  15  norm          .10000E-03    6.9173       -.40913E-07** at limit **
  16  Prefactor     10.276        13.368        .89686E-06    .21177E-04
  17  Prefactor     46.330        79.535        .10377E-05   -.27617E-04
  18  Prefactor     53.114        64.104       -.27856E-05   -.35182E-03
  19  Prefactor     .10000E-03    9.1659       -.56383E-06** at limit **
  20  norm          .62280        1.0542        .21370E-06    .70410E-03
  21  Prefactor     .10000E-03    3.2548        .59999E-07** at limit **
  22  Normalizat    1.1355        .19823       -.73925E-06    .83168E-04
  23  Prefactor     1.0815        .15285       -.28013E-06    .82593E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.16725
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 39.8557
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.00010018
  norm       = 3.88806
  norm       = 0.000100001
  norm       = 0.000100014
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.2765
  Prefactor  = 46.3304
  Prefactor  = 53.1137
  Prefactor  = 0.0001
  norm       = 0.622803
  Prefactor  = 0.0001
  Normalizat = 1.13546
  Prefactor  = 1.08154
 **********
 **   18 **HESSE 
 **********

 FCN=   6869.001     FROM HESSE     STATUS=OK           368 CALLS     3016 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.1672        4.5798        .68193E-03   -1.5172    
   2  norm          .10000E-03    2.3603        .12401E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.4960        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.4257        .12475E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     39.856        34.597        .63493E-04   -1.4444    
   6  Prefactor     .10000E-03    17.375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    34.194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10018E-03    13.084        .22000E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.8881        1.8456        .73492E-04   -1.5314    
  10  norm          .10000E-03    4.2451        .78188E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10001E-03    8.8269        .15242E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.3982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.8631        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.2764        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    6.9191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     10.276        13.384        .12504E-03   -1.5067    
  17  Prefactor     46.330        79.703        .58910E-04   -1.4346    
  18  Prefactor     53.114        64.761        .55016E-04   -1.4249    
  19  Prefactor     .10000E-03    9.1679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .62280        .89354        .10663E-02   -1.5550    
  21  Prefactor     .10000E-03    3.3228        .14597E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1355        .23345        .27546E-03   -.88621    
  23  Prefactor     1.0815        .17999        .22584E-03   -.90059    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.66735e-08
Minuit parameter uncertainties:
  1  4.58002
  2  2.63151e-06
  3  4.81681e-05
  4  2.78915e-06
  5  34.614
  6  0.000330747
  7  0.000148024
  8  0.00306657
  9  1.84558
  10  0.000120876
  11  0.000712845
  12  3.63297e-05
  13  1.67274e-05
  14  3.79738e-05
  15  4.23825e-07
  16  13.3875
  17  79.8874
  18  64.8468
  19  1.97191e-05
  20  0.893554
  21  5.18309e-06
  22  0.23366
  23  0.180095
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.000e-04  1.209e-04  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.082e+00  1.801e-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.135e+00  2.337e-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: 9.24e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.30e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/513194/likelihoodResults_274579201_274838401_4FGL_J0948.9+0022_daily_bin136.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): 102
logL (Free Index) = 6869.00264352
delta logL = -0.00129277453834

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6869.00135194
delta logL = -1.19194737636e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10330E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4009       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1351       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0819       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6869.001     FROM MIGRAD    STATUS=FAILED       111 CALLS      277 TOTAL
                     EDM=   .68E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10069E-03    11.395        .13773E-01** at limit **
   2  alpha         2.2228        3.4878        .50000        .12380E-05
   3  Normalizat    1.1355        .24360E-01    .27546E-03   -.73803E-03
   4  Prefactor     1.0815        .19670E-01    .22584E-03   -.71522E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6869.001     FROM SIMPLEX   STATUS=UNCHANGED    117 CALLS      394 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10069E-03    11.395        .39086E-03** at limit **
   2  alpha         2.2228        3.4878        .11714E-02    .12380E-05
   3  Normalizat    1.1355        .24360E-01    .24453E-04   -.73803E-03
   4  Prefactor     1.0815        .19670E-01    .21855E-04   -.71522E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6869.001     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      437 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10061E-03    8.6414        .15800E-01** at limit **
   2  alpha         2.2270        3.4868        .50000        .30691E-05
   3  Normalizat    1.1355        .23221E-01    .55091E-04   -.69882E-03
   4  Prefactor     1.0815        .18739E-01    .45167E-04   -.66973E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100607
  alpha      = 2.22696
  Normalizat = 1.13546
  Prefactor  = 1.08154
 **********
 **   18 **HESSE 
 **********

 FCN=   6869.001     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      476 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10061E-03    9.2912        .15225E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2270        3.8057        .50000       -.10943    
   3  Normalizat    1.1355        .23496E-01    .11018E-04   -.88621    
   4  Prefactor     1.0815        .18964E-01    .90334E-05   -.90059    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.88085e-10
Minuit parameter uncertainties:
  1  0.00474907
  2  277.775
  3  0.0234961
  4  0.0189639
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/513194': 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): 102
logL (Free Index) = 6869.00134649
delta logL = 4.25657890446e-06

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.006e-04  4.749e-03  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  2.227e+00  2.778e+02  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.082e+00  1.896e-02  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.135e+00  2.350e-02  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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/513194/cmap_HighResolution_274579201_274838401_4FGL_J0948.9+0022_daily_bin136.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.30e-05', job_status='DONE', photon_flux_upper_limit='9.24e-08', time_completed='2021-09-01 02:49:57.766419', job_id='513194', GAL2='1.08', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1630489797.77', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='4.26e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='136' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:49:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0302>
Subject: Job 513194: <4FGL_J0948.9+0022_daily_bin136> in cluster <slac> Done

Job <4FGL_J0948.9+0022_daily_bin136> 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) <bullet0302>, 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:49:58 2021
Results reported at Wed Sep  1 02:49:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin136 147.244 0.3717 274579201 274838401 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 :                                   643.20 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             278.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   826 sec.
    Turnaround time :                            828 sec.

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

