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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin109
RA = 147.244, Dec = 0.3717
tmin = 267580801, tmax = 267840001
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='513155', job_status='RUN', time_executed='2021-09-01 02:40:20.775951', time_epoch_executed='1630489220.78' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='109'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/513155

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/513155/ft1_4FGL_J0948.9+0022_daily_bin109.fits


Retrieving the FT1 file...

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

Retrieving 44 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/513155/ft2_4FGL_J0948.9+0022_daily_bin109.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/513155/ft1_4FGL_J0948.9+0022_daily_bin109.fits outfile=/scratch/kocevski/513155/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin109.fits ra=147.244 dec=0.3717 rad=12.0 tmin=267580801.0 tmax=267840001.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.66
user 1.20
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/513155/ft1_filtered_4FGL_J0948.9+0022_daily_bin109.fits" evtable="EVENTS" scfile=/scratch/kocevski/513155/ft2_4FGL_J0948.9+0022_daily_bin109.fits sctable="SC_DATA" outfile=/scratch/kocevski/513155/ltcube_267580801_267840001_4FGL_J0948.9+0022_daily_bin109.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/513155/ft2_4FGL_J0948.9+0022_daily_bin109.fits
.....................!
real 12.10
user 11.62
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/513155/ft1_filtered_4FGL_J0948.9+0022_daily_bin109.fits evtable="EVENTS" scfile=/scratch/kocevski/513155/ft2_4FGL_J0948.9+0022_daily_bin109.fits sctable="SC_DATA" expcube=/scratch/kocevski/513155/ltcube_267580801_267840001_4FGL_J0948.9+0022_daily_bin109.fits outfile=/scratch/kocevski/513155/expmap_267580801_267840001_4FGL_J0948.9+0022_daily_bin109.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/513155/ltcube_267580801_267840001_4FGL_J0948.9+0022_daily_bin109.fits
.....................!
real 191.83
user 185.76
sys 4.48

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/513155/ft1_filtered_4FGL_J0948.9+0022_daily_bin109.fits scfile=/scratch/kocevski/513155/ft2_4FGL_J0948.9+0022_daily_bin109.fits outfile=/scratch/kocevski/513155/cmap_267580801_267840001_4FGL_J0948.9+0022_daily_bin109.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/513155/ft1_filtered_4FGL_J0948.9+0022_daily_bin109.fits scfile=/scratch/kocevski/513155/ft2_4FGL_J0948.9+0022_daily_bin109.fits outfile=/scratch/kocevski/513155/cmap_HighResolution_267580801_267840001_4FGL_J0948.9+0022_daily_bin109.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .67513       1.0000         .10000E-03   10000.    
     2 'norm      '    1.3868       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    25.781       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .12845E-01   1.0000         .10000E-03   10000.    
     9 'norm      '    .26959       1.0000         .10000E-03   10000.    
    10 'norm      '    .30986E-01   1.0000         .10000E-03   10000.    
    11 'norm      '    2.1931       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.4791       1.0000         .10000E-03   10000.    
    13 'Prefactor '    18.046       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.2325       1.0000         .10000E-03   10000.    
    17 'Prefactor '    235.51       1.0000         .10000E-03   10000.    
    18 'Prefactor '    51.919       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10566E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1456       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0079       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=   6571.538     FROM MIGRAD    STATUS=CONVERGED    542 CALLS     2732 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .67610        4.4392        .26059E-05   -.32009E-04
   2  norm          1.3876        3.3124        .49529E-06   -.23804E-04
   3  Prefactor     .10000E-03    6.5509       -.64025E-07** at limit **
   4  Prefactor     .10000E-03    2.6660       -.14406E-06** at limit **
   5  Prefactor     .10000E-03    46.579       -.26594E-06** at limit **
   6  Prefactor     25.789        17.528        .61264E-06   -.15367E-03
   7  Prefactor     .10000E-03    10.774        .89775E-06** at limit **
   8  norm          .38105E-01    2.2724        .25259E-06    .26730E-04
   9  norm          .27064        .94581        .63282E-06   -.51322E-03
  10  norm          .33114E-01    .28493        .18714E-06   -.89644E-03
  11  norm          2.1926        1.5685        .67476E-07   -.62715E-04
  12  Prefactor     3.4838        11.514       -.74887E-06   -.41036E-04
  13  Prefactor     18.067        40.647        .42301E-05   -.46407E-05
  14  Prefactor     .10000E-03    18.524        .25206E-06** at limit **
  15  norm          .10000E-03    7.0668       -.38988E-07** at limit **
  16  Prefactor     3.2036        20.592        .59155E-05   -.41668E-04
  17  Prefactor     235.46        98.871       -.34414E-05   -.76621E-04
  18  Prefactor     52.144        106.60        .26746E-05   -.65780E-05
  19  Prefactor     .10000E-03    14.240        .34465E-05** at limit **
  20  norm          .10000E-03    .32965        .92477E-07** at limit **
  21  Prefactor     .10000E-03    10.742       -.10967E-05** at limit **
  22  Normalizat    1.1451        .20766       -.31870E-05   -.29932E-03
  23  Prefactor     1.0081        .15363        .56115E-06   -.51714E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.676101
  norm       = 1.38758
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.7891
  Prefactor  = 0.0001
  norm       = 0.0381045
  norm       = 0.270636
  norm       = 0.0331144
  norm       = 2.19259
  Prefactor  = 3.48382
  Prefactor  = 18.0669
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.20356
  Prefactor  = 235.456
  Prefactor  = 52.1438
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.14507
  Prefactor  = 1.00813
 **********
 **   18 **HESSE 
 **********

 FCN=   6571.538     FROM HESSE     STATUS=OK           380 CALLS     3112 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .67610        4.5703        .32284E-03   -1.5544    
   2  norm          1.3876        3.2586        .22126E-03   -1.5472    
   3  Prefactor     .10000E-03    6.5635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.7468        .25809E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    47.011        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     25.789        17.569        .78896E-04   -1.4692    
   7  Prefactor     .10000E-03    10.785        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .38105E-01    5.1329        .39656E-01   -1.5669    
   9  norm          .27064        1.3767        .13594E-02   -1.5604    
  10  norm          .33114E-01    2.1929        .79907E-03   -1.5672    
  11  norm          2.1926        1.5700        .83197E-04   -1.5412    
  12  Prefactor     3.4838        11.459        .21679E-03   -1.5335    
  13  Prefactor     18.067        40.762        .94281E-04   -1.4858    
  14  Prefactor     .10000E-03    18.547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    7.0683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.2036        20.476        .22530E-03   -1.5350    
  17  Prefactor     235.46        99.890        .13189E-03   -1.2627    
  18  Prefactor     52.144        107.09        .27830E-03   -1.4262    
  19  Prefactor     .10000E-03    14.087        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .33415        .45442E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    11.111        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1451        .24526        .26674E-03   -.88318    
  23  Prefactor     1.0081        .18453        .22639E-03   -.92459    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12816e-09
Minuit parameter uncertainties:
  1  3.5158
  2  3.25897
  3  8.32643e-06
  4  7.41097e-06
  5  9.82822e-05
  6  17.5723
  7  1.85611e-05
  8  0.883423
  9  1.22062
  10  0.53816
  11  1.57002
  12  11.4663
  13  40.8249
  14  2.53165e-07
  15  4.34141e-07
  16  16.2062
  17  99.9621
  18  107.486
  19  8.00865e-05
  20  1.29707e-07
  21  4.42488e-05
  22  0.245507
  23  0.18465
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  3.311e-02  5.382e-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.008e+00  1.846e-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.145e+00  2.455e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/513155/likelihoodResults_267580801_267840001_4FGL_J0948.9+0022_daily_bin109.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) = 6571.52181509
delta logL = 0.0165482764287

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6571.49835831
delta logL = 0.0400050561493

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13744       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.2301       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1324       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0122       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6571.498     FROM MIGRAD    STATUS=FAILED       100 CALLS      281 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .13755        .57851        .72420E-03    .81317E-02
   2  alpha         3.2282        3.8404        .75104E-01   -.50299E-04
   3  Normalizat    1.1324        .22970        .26806E-03   -.18237E-05
   4  Prefactor     1.0122        .18150        .22599E-03    .40246E-06
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6571.498     FROM SIMPLEX   STATUS=UNCHANGED     73 CALLS      354 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .13755        .57851        .59883E-04   -1.5634    
   2  alpha         3.2282        3.8404        .45832E-02    .29558    
   3  Normalizat    1.1324        .22970        .27350E-03   -.88717    
   4  Prefactor     1.0122        .18150        .19494E-03   -.92325    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6571.498     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      387 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .13755        .50983        .14484E-03    .32516E-03
   2  alpha         3.2282        3.7491        .15021E-01    .18165E-06
   3  Normalizat    1.1324        .23008        .10723E-04   -.19085E-05
   4  Prefactor     1.0122        .18178        .90394E-05    .25154E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.137551
  alpha      = 3.22823
  Normalizat = 1.13243
  Prefactor  = 1.01217
 **********
 **   18 **HESSE 
 **********

 FCN=   6571.498     FROM HESSE     STATUS=OK            25 CALLS      412 TOTAL
                     EDM=   .13E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .13755        .50305        .28968E-04   -1.5634    
   2  alpha         3.2282        3.7369        .60083E-03    .29558    
   3  Normalizat    1.1324        .23056        .21445E-05   -.88717    
   4  Prefactor     1.0122        .18218        .18079E-05   -.92325    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28775e-13
Minuit parameter uncertainties:
  1  0.503064
  2  2.55533
  3  0.230766
  4  0.182288
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/513155': 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) = 6571.49835801
delta logL = 0.0400053570365

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.376e-01  5.031e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  3.228e+00  2.555e+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:  1.012e+00  1.823e-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.132e+00  2.308e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/513155/cmap_HighResolution_267580801_267840001_4FGL_J0948.9+0022_daily_bin109.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.51e-05', job_status='DONE', photon_flux_upper_limit='1.01e-07', time_completed='2021-09-01 02:51:10.279726', job_id='513155', GAL2='1.01', fit_tolerance='1e-08', EG2='1.13', EG='1.15', time_epoch_completed='1630489870.28', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='4.00e-02', ts2='0.09', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='109' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:51:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0185>
Subject: Job 513155: <4FGL_J0948.9+0022_daily_bin109> in cluster <slac> Done

Job <4FGL_J0948.9+0022_daily_bin109> 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) <bullet0185>, 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:51:11 2021
Results reported at Wed Sep  1 02:51:11 2021

Your job looked like:

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

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

