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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin110
RA = 147.244, Dec = 0.3717
tmin = 267840001, tmax = 268099201
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='513156', job_status='RUN', time_executed='2021-09-01 02:39:19.084791', time_epoch_executed='1630489159.08' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='110'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/513156

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/513156/ft1_4FGL_J0948.9+0022_daily_bin110.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/513156/ft2_4FGL_J0948.9+0022_daily_bin110.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/513156/ft1_4FGL_J0948.9+0022_daily_bin110.fits outfile=/scratch/kocevski/513156/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin110.fits ra=147.244 dec=0.3717 rad=12.0 tmin=267840001.0 tmax=268099201.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.58
user 1.28
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/513156/ft1_filtered_4FGL_J0948.9+0022_daily_bin110.fits" evtable="EVENTS" scfile=/scratch/kocevski/513156/ft2_4FGL_J0948.9+0022_daily_bin110.fits sctable="SC_DATA" outfile=/scratch/kocevski/513156/ltcube_267840001_268099201_4FGL_J0948.9+0022_daily_bin110.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/513156/ft2_4FGL_J0948.9+0022_daily_bin110.fits
.....................!
real 12.69
user 12.15
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/513156/ft1_filtered_4FGL_J0948.9+0022_daily_bin110.fits evtable="EVENTS" scfile=/scratch/kocevski/513156/ft2_4FGL_J0948.9+0022_daily_bin110.fits sctable="SC_DATA" expcube=/scratch/kocevski/513156/ltcube_267840001_268099201_4FGL_J0948.9+0022_daily_bin110.fits outfile=/scratch/kocevski/513156/expmap_267840001_268099201_4FGL_J0948.9+0022_daily_bin110.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/513156/ltcube_267840001_268099201_4FGL_J0948.9+0022_daily_bin110.fits
.....................!
real 191.97
user 184.94
sys 4.21

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/513156/ft1_filtered_4FGL_J0948.9+0022_daily_bin110.fits scfile=/scratch/kocevski/513156/ft2_4FGL_J0948.9+0022_daily_bin110.fits outfile=/scratch/kocevski/513156/cmap_267840001_268099201_4FGL_J0948.9+0022_daily_bin110.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/513156/ft1_filtered_4FGL_J0948.9+0022_daily_bin110.fits scfile=/scratch/kocevski/513156/ft2_4FGL_J0948.9+0022_daily_bin110.fits outfile=/scratch/kocevski/513156/cmap_HighResolution_267840001_268099201_4FGL_J0948.9+0022_daily_bin110.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.3474       1.0000         .10000E-03   10000.    
     2 'norm      '    2.3078       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10169E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13626E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    37.736       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.4968       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.3151       1.0000         .10000E-03   10000.    
     9 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .29219       1.0000         .10000E-03   10000.    
    11 'norm      '    1.5582       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    33.065       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11557E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10671E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.0697       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .67395E-02   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2135       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .72210       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=   5766.374     FROM MIGRAD    STATUS=CONVERGED    934 CALLS     2666 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.3475        5.2069        .13746E-03   -.13787E-03
   2  norm          2.3087        6.2252        .27010E-03   -.62463E-04
   3  Prefactor     .10000E-03    13.824        .18142E-02** at limit **
   4  Prefactor     .10000E-03    8.5805        .20418E-02** at limit **
   5  Prefactor     37.740        26.024        .65244E-04    .47814E-04
   6  Prefactor     5.4963        10.654        .17137E-03   -.68660E-04
   7  Prefactor     .10000E-03    12.258        .18142E-02** at limit **
   8  norm          4.3152        3.2005        .11326E-03   -.50591E-04
   9  norm          .10000E-03    2.6436        .13764E-02** at limit **
  10  norm          .29231        .51790        .70229E-04    .90653E-04
  11  norm          1.5582        1.5138        .89200E-04   -.13281E-03
  12  Prefactor     .10000E-03    3.4596        .13785E-02** at limit **
  13  Prefactor     .10000E-03    14.734        .18142E-02** at limit **
  14  Prefactor     .10000E-03    22.060        .18142E-02** at limit **
  15  norm          .10000E-03    6.8163        .18142E-02** at limit **
  16  Prefactor     33.050        13.286        .69686E-04   -.31633E-03
  17  Prefactor     .10000E-03    128.82        .18142E-02** at limit **
  18  Prefactor     .10000E-03    33.981        .18142E-02** at limit **
  19  Prefactor     .10000E-03    6.9179        .18142E-02** at limit **
  20  norm          1.0700        1.2357        .46991E-04   -.56370E-04
  21  Prefactor     .10039E-03    6.7769        .50371E-01** at limit **
  22  Normalizat    1.2133        .21707        .23591E-03    .17108E-04
  23  Prefactor     .72223        .16725        .23499E-03   -.21239E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.3475
  norm       = 2.30868
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 37.74
  Prefactor  = 5.49632
  Prefactor  = 0.0001
  norm       = 4.31518
  norm       = 0.000100001
  norm       = 0.292307
  norm       = 1.55817
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 33.0497
  Prefactor  = 0.000100004
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 1.06996
  Prefactor  = 0.000100386
  Normalizat = 1.21328
  Prefactor  = 0.722232
 **********
 **   18 **HESSE 
 **********

 FCN=   5766.374     FROM HESSE     STATUS=OK           356 CALLS     3022 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.3475        5.2064        .54986E-05   -1.5166    
   2  norm          2.3087        6.2242        .10804E-04   -1.5404    
   3  Prefactor     .10000E-03    13.836        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.6229        .40835E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     37.740        26.024        .13049E-04   -1.4479    
   6  Prefactor     5.4963        10.653        .68550E-05   -1.5239    
   7  Prefactor     .10000E-03    12.258        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.3152        3.2005        .45303E-05   -1.5292    
   9  norm          .10000E-03    2.6714        .27529E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .29231        .51781        .28091E-05   -1.5600    
  11  norm          1.5582        1.5138        .35680E-05   -1.5458    
  12  Prefactor     .10000E-03    3.4596        .27570E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    14.735        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    22.062        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    6.8166        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     33.050        13.285        .13937E-04   -1.4558    
  17  Prefactor     .10000E-03    128.86        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    33.981        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.9180        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.0700        1.2358        .18797E-05   -1.5501    
  21  Prefactor     .10039E-03    6.4157        .52241E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.2133        .21721        .94363E-05   -.86194    
  23  Prefactor     .72223        .16740        .93994E-05   -1.0266    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.35631e-10
Minuit parameter uncertainties:
  1  5.20674
  2  6.22595
  3  3.08742e-05
  4  0.000316666
  5  26.0318
  6  10.6567
  7  7.64058e-05
  8  3.20059
  9  7.83034e-05
  10  0.517815
  11  1.51383
  12  7.67853e-06
  13  3.94605e-05
  14  0.000139024
  15  4.33518e-05
  16  13.2864
  17  0.0014651
  18  0.000287485
  19  2.29541e-05
  20  1.23579
  21  0.00314944
  22  0.217375
  23  0.167515
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  2.923e-01  5.178e-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.222e-01  1.675e-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.213e+00  2.174e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/513156/likelihoodResults_267840001_268099201_4FGL_J0948.9+0022_daily_bin110.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) = 5766.11369285
delta logL = 0.260420688716

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5766.10154529
delta logL = 0.272568251354

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .19175       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.6455       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1640       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75191       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=   5766.102     FROM MIGRAD    STATUS=FAILED        97 CALLS      271 TOTAL
                     EDM=   .45E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .19146        11.590        .36275E-03    .84471E-02
   2  alpha         4.6476        3.7378        .10070       -.58007E-05
   3  Normalizat    1.1640        .18824        .24013E-03   -.97526E-05
   4  Prefactor     .75194        .15954        .23072E-03   -.91157E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5766.102     FROM SIMPLEX   STATUS=UNCHANGED     84 CALLS      355 TOTAL
                     EDM=   .99E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .19146        11.590        .36363E-04    .84471E-02
   2  alpha         4.6476        3.7378        .52334E-02   -.58007E-05
   3  Normalizat    1.1640        .18824        .13612E-03   -.97526E-05
   4  Prefactor     .75194        .15954        .95419E-04   -.91157E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5766.102     FROM MIGRAD    STATUS=CONVERGED     40 CALLS      395 TOTAL
                     EDM=   .17E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .19146        .67693        .72551E-04   -.24038E-03
   2  alpha         4.6476        4.0570        .40278E-02   -.10895E-05
   3  Normalizat    1.1640        .22155        .96054E-05   -.10179E-04
   4  Prefactor     .75194        .17152        .92289E-05   -.91157E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.191461
  alpha      = 4.64764
  Normalizat = 1.16403
  Prefactor  = 0.751941
 **********
 **   18 **HESSE 
 **********

 FCN=   5766.102     FROM HESSE     STATUS=OK            23 CALLS      418 TOTAL
                     EDM=   .17E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .19146        .58647        .29020E-05   -1.5620    
   2  alpha         4.6476        4.5531        .16111E-03    1.0334    
   3  Normalizat    1.1640        .22123        .19211E-05   -.87722    
   4  Prefactor     .75194        .17093        .18458E-05   -1.0152    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.68677e-12
Minuit parameter uncertainties:
  1  0.586489
  2  4.19082
  3  0.221406
  4  0.17105
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/513156': 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) = 5766.1015451
delta logL = 0.272568437893

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.915e-01  5.865e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  4.648e+00  4.191e+00  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.519e-01  1.711e-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.164e+00  2.214e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.39
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/513156/cmap_HighResolution_267840001_268099201_4FGL_J0948.9+0022_daily_bin110.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.85e-05', job_status='DONE', photon_flux_upper_limit='1.14e-07', time_completed='2021-09-01 02:49:02.503737', job_id='513156', GAL2='0.75', fit_tolerance='1e-08', EG2='1.16', EG='1.21', time_epoch_completed='1630489742.5', return_code2='0', ts='0.39', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='2.73e-01', ts2='0.99', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='110' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:49:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0188>
Subject: Job 513156: <4FGL_J0948.9+0022_daily_bin110> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin110 147.244 0.3717 267840001 268099201 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 :                                   579.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             289.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   773 sec.
    Turnaround time :                            776 sec.

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

