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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin403
RA = 147.244, Dec = 0.3717
tmin = 343785601, tmax = 344044801
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='514822', job_status='RUN', time_executed='2021-09-01 02:43:23.625726', time_epoch_executed='1630489403.63' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='403'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/514822

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/514822/ft1_4FGL_J0948.9+0022_daily_bin403.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/514822/ft2_4FGL_J0948.9+0022_daily_bin403.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/514822/ft1_4FGL_J0948.9+0022_daily_bin403.fits outfile=/scratch/kocevski/514822/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin403.fits ra=147.244 dec=0.3717 rad=12.0 tmin=343785601.0 tmax=344044801.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.44
user 3.22
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/514822/ft2_4FGL_J0948.9+0022_daily_bin403.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/514822/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin403.fits evtable="EVENTS" outfile="/scratch/kocevski/514822/ft1_filtered_4FGL_J0948.9+0022_daily_bin403.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.53
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/514822/ft1_filtered_4FGL_J0948.9+0022_daily_bin403.fits" evtable="EVENTS" scfile=/scratch/kocevski/514822/ft2_4FGL_J0948.9+0022_daily_bin403.fits sctable="SC_DATA" outfile=/scratch/kocevski/514822/ltcube_343785601_344044801_4FGL_J0948.9+0022_daily_bin403.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/514822/ft2_4FGL_J0948.9+0022_daily_bin403.fits
.....................!
real 12.20
user 11.82
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/514822/ft1_filtered_4FGL_J0948.9+0022_daily_bin403.fits evtable="EVENTS" scfile=/scratch/kocevski/514822/ft2_4FGL_J0948.9+0022_daily_bin403.fits sctable="SC_DATA" expcube=/scratch/kocevski/514822/ltcube_343785601_344044801_4FGL_J0948.9+0022_daily_bin403.fits outfile=/scratch/kocevski/514822/expmap_343785601_344044801_4FGL_J0948.9+0022_daily_bin403.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/514822/ltcube_343785601_344044801_4FGL_J0948.9+0022_daily_bin403.fits
.....................!
real 190.89
user 185.41
sys 5.00

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/514822/ft1_filtered_4FGL_J0948.9+0022_daily_bin403.fits scfile=/scratch/kocevski/514822/ft2_4FGL_J0948.9+0022_daily_bin403.fits outfile=/scratch/kocevski/514822/cmap_343785601_344044801_4FGL_J0948.9+0022_daily_bin403.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.69
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.6811       1.0000         .10000E-03   10000.    
     2 'norm      '    .18131E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    29.103       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.6284       1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.925       1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.686       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.1254       1.0000         .10000E-03   10000.    
     8 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.7822       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.0217       1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.459       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12142E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.439       1.0000         .10000E-03   10000.    
    15 'norm      '    .10128E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.9634       1.0000         .10000E-03   10000.    
    17 'Prefactor '    109.37       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10179E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.0079       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.0129       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .73126       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2073       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=   7666.032     FROM MIGRAD    STATUS=CONVERGED    542 CALLS     2623 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.6819        4.4521        .59045E-07   -.47473E-05
   2  norm          .10035E-03    3.5741       -.76586E-06** at limit **
   3  Prefactor     29.109        17.976       -.68622E-07   -.33625E-04
   4  Prefactor     4.6283        3.7059        .10743E-06   -.20346E-04
   5  Prefactor     10.931        36.583        .16964E-06   -.96092E-05
   6  Prefactor     14.689        13.898        .20302E-06   -.13151E-04
   7  Prefactor     1.1169        97.789        .28372E-04   -.31391E-04
   8  norm          .10000E-03    2.7864        .88003E-09** at limit **
   9  norm          1.7823        1.1723        .31758E-07   -.15129E-03
  10  norm          .10000E-03    .20996        .41403E-08** at limit **
  11  norm          1.0211        1.3680        .18619E-06    .82383E-03
  12  Prefactor     17.459        11.298       -.11049E-06    .47581E-04
  13  Prefactor     .10001E-03    41.381        .19783E-05** at limit **
  14  Prefactor     11.375        24.165       -.65285E-06   -.60788E-05
  15  norm          .10000E-03    7.6232       -.12390E-05** at limit **
  16  Prefactor     3.9642        8.7119        .15431E-05   -.30282E-03
  17  Prefactor     109.34        62.650        .86893E-06    .36853E-04
  18  Prefactor     .10002E-03    69.879       -.31470E-05** at limit **
  19  Prefactor     .10000E-03    11.825       -.81856E-06** at limit **
  20  norm          1.0072        1.1598        .90819E-07    .31911E-03
  21  Prefactor     6.0157        5.8305        .23418E-06    .88014E-04
  22  Normalizat    .73072        .18885        .64271E-06    .22682E-04
  23  Prefactor     1.2078        .14576       -.13694E-05   -.23058E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.68187
  norm       = 0.000100351
  Prefactor  = 29.1086
  Prefactor  = 4.62829
  Prefactor  = 10.9313
  Prefactor  = 14.689
  Prefactor  = 1.11689
  norm       = 0.0001
  norm       = 1.78226
  norm       = 0.0001
  norm       = 1.02109
  Prefactor  = 17.4588
  Prefactor  = 0.000100006
  Prefactor  = 11.3752
  norm       = 0.000100002
  Prefactor  = 3.96421
  Prefactor  = 109.342
  Prefactor  = 0.000100016
  Prefactor  = 0.000100001
  norm       = 1.00716
  Prefactor  = 6.01574
  Normalizat = 0.730724
  Prefactor  = 1.20784
 **********
 **   18 **HESSE 
 **********

 FCN=   7666.032     FROM HESSE     STATUS=OK           388 CALLS     3011 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.6819        4.4494        .11999E-03   -1.5086    
   2  norm          .10035E-03    3.7167        .53433E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     29.109        17.946        .74265E-04   -1.4628    
   4  Prefactor     4.6283        3.6993        .14224E-03   -1.5278    
   5  Prefactor     10.931        36.483        .12121E-03   -1.5047    
   6  Prefactor     14.689        13.909        .10451E-03   -1.4941    
   7  Prefactor     1.1169        97.539        .22079E-02   -1.5497    
   8  norm          .10000E-03    2.9146        .28517E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.7823        1.1643        .73407E-04   -1.5441    
  10  norm          .10000E-03    .21020        .18142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.0211        1.1798        .11477E-02   -1.5506    
  12  Prefactor     17.459        11.285        .95854E-04   -1.4872    
  13  Prefactor     .10001E-03    42.212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.375        24.191        .11845E-03   -1.5033    
  15  norm          .10000E-03    7.7466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.9642        8.7820        .10130E-02   -1.5310    
  17  Prefactor     109.34        62.795        .38459E-04   -1.3613    
  18  Prefactor     .10002E-03    70.848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.0072        1.0577        .95117E-03   -1.5507    
  21  Prefactor     6.0157        5.8035        .16375E-03   -1.5217    
  22  Normalizat    .73072        .21590        .31599E-03   -1.0269    
  23  Prefactor     1.2078        .16716        .20788E-03   -.86090    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29362e-09
Minuit parameter uncertainties:
  1  4.4495
  2  0.00228519
  3  17.9492
  4  3.69946
  5  36.558
  6  13.9117
  7  20.9091
  8  7.70568e-07
  9  1.16427
  10  1.5096e-07
  11  1.17982
  12  11.2867
  13  0.000980257
  14  24.212
  15  0.000261049
  16  8.78482
  17  62.8337
  18  0.00212095
  19  0.000212857
  20  1.05769
  21  5.80407
  22  0.216149
  23  0.167235
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.000e-04  1.510e-07  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.208e+00  1.672e-01  0.000e+00  1.000e+01 ( 1.000e+00)
473        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
474        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
471   Normalization:  7.307e-01  2.161e-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: 6.13e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.53e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/514822/likelihoodResults_343785601_344044801_4FGL_J0948.9+0022_daily_bin403.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): 0
logL (Free Index) = 7666.03236354
delta logL = -0.000123808361423

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7666.03223974
delta logL = -4.89399099024e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4532       1.0000          .0000       5.0000    
     3 'Normalizat'    .73072       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2078       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=   7666.032     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      246 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .21351        .18142E-03** at limit **
   2  alpha         2.4568        3.6244        .16464       -.41776E-07
   3  Normalizat    .73072        .19901        .31599E-03   -.18349E-05
   4  Prefactor     1.2078        .16548        .20788E-03   -.38829E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.45681
  Normalizat = 0.730721
  Prefactor  = 1.20784
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .21021        .36285E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4568        3.5082        .65857E-02   -.17276E-01
   3  Normalizat    .73072        .19918        .12640E-04   -1.0269    
   4  Prefactor     1.2078        .16562        .83152E-05   -.86090    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27748e-13
Minuit parameter uncertainties:
  1  7.55318e-08
  2  60.5054
  3  0.19938
  4  0.165694
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/514822': 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) = 7666.03223973
delta logL = 2.12457962334e-09

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.000e-04  7.553e-08  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  2.457e+00  6.051e+01  0.000e+00  5.000e+00 ( 1.000e+00)
219         beta:  1.652e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
220           Eb:  2.768e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
472    Prefactor:  1.208e+00  1.657e-01  0.000e+00  1.000e+01 ( 1.000e+00)
473        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
474        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
471   Normalization:  7.307e-01  1.994e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/514822/cmap_HighResolution_343785601_344044801_4FGL_J0948.9+0022_daily_bin403.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.53e-05', job_status='DONE', photon_flux_upper_limit='6.13e-08', time_completed='2021-09-01 02:54:47.361647', job_id='514822', GAL2='1.21', fit_tolerance='1e-08', EG2='0.73', EG='0.73', time_epoch_completed='1630490087.36', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.21', dlogl='2.12e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='403' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:54:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0139>
Subject: Job 514822: <4FGL_J0948.9+0022_daily_bin403> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin403 147.244 0.3717 343785601 344044801 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 :                                   676.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             317.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   829 sec.
    Turnaround time :                            832 sec.

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

