/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 151 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 = 7660
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0948.9+0022_daily_bin455
RA = 147.244, Dec = 0.3717
tmin = 357264001, tmax = 357523201
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='514887', job_status='RUN', time_executed='2021-09-01 02:44:09.260314', time_epoch_executed='1630489449.26' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='455'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/514887

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/514887/ft1_4FGL_J0948.9+0022_daily_bin455.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/514887/ft2_4FGL_J0948.9+0022_daily_bin455.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/514887/ft1_4FGL_J0948.9+0022_daily_bin455.fits outfile=/scratch/kocevski/514887/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin455.fits ra=147.244 dec=0.3717 rad=12.0 tmin=357264001.0 tmax=357523201.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.73
user 3.41
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/514887/ft1_filtered_4FGL_J0948.9+0022_daily_bin455.fits evtable="EVENTS" scfile=/scratch/kocevski/514887/ft2_4FGL_J0948.9+0022_daily_bin455.fits sctable="SC_DATA" expcube=/scratch/kocevski/514887/ltcube_357264001_357523201_4FGL_J0948.9+0022_daily_bin455.fits outfile=/scratch/kocevski/514887/expmap_357264001_357523201_4FGL_J0948.9+0022_daily_bin455.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/514887/ltcube_357264001_357523201_4FGL_J0948.9+0022_daily_bin455.fits
.....................!
real 189.42
user 184.71
sys 4.02

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/514887/ft1_filtered_4FGL_J0948.9+0022_daily_bin455.fits scfile=/scratch/kocevski/514887/ft2_4FGL_J0948.9+0022_daily_bin455.fits outfile=/scratch/kocevski/514887/cmap_357264001_357523201_4FGL_J0948.9+0022_daily_bin455.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.39
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/514887/ft1_filtered_4FGL_J0948.9+0022_daily_bin455.fits scfile=/scratch/kocevski/514887/ft2_4FGL_J0948.9+0022_daily_bin455.fits outfile=/scratch/kocevski/514887/cmap_HighResolution_357264001_357523201_4FGL_J0948.9+0022_daily_bin455.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/514887/ft1_filtered_4FGL_J0948.9+0022_daily_bin455.fits evtable="EVENTS" scfile=/scratch/kocevski/514887/ft2_4FGL_J0948.9+0022_daily_bin455.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/514887/Model_4FGL_J0948.9+0022_daily_bin455.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/514887/ft1_filtered_4FGL_J0948.9+0022_daily_bin455.fits....................!
real 65.56
user 64.35
sys 1.07

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/514887/ft1_filtered_4FGL_J0948.9+0022_daily_bin455.fits', '/scratch/kocevski/514887/ft2_4FGL_J0948.9+0022_daily_bin455.fits', expMap='/scratch/kocevski/514887/expmap_357264001_357523201_4FGL_J0948.9+0022_daily_bin455.fits', expCube='/scratch/kocevski/514887/ltcube_357264001_357523201_4FGL_J0948.9+0022_daily_bin455.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/514887/Model_4FGL_J0948.9+0022_daily_bin455.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/514887/ft1_filtered_4FGL_J0948.9+0022_daily_bin455.fits
Spacecraft file(s): /scratch/kocevski/514887/ft2_4FGL_J0948.9+0022_daily_bin455.fits
Exposure map: /scratch/kocevski/514887/expmap_357264001_357523201_4FGL_J0948.9+0022_daily_bin455.fits
Exposure cube: /scratch/kocevski/514887/ltcube_357264001_357523201_4FGL_J0948.9+0022_daily_bin455.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/514887/Model_4FGL_J0948.9+0022_daily_bin455.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 6540.13209988

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.1897       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.1396       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002       1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.075       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.7520       1.0000         .10000E-03   10000.    
     9 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .28927       1.0000         .10000E-03   10000.    
    11 'norm      '    2.9079       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10156E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10072E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.599       1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.213       1.0000         .10000E-03   10000.    
    18 'Prefactor '    87.461       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.5300       1.0000         .10000E-03   10000.    
    20 'norm      '    .13744E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.3374       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .87949       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=   6540.061     FROM MIGRAD    STATUS=CONVERGED    580 CALLS     3032 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.1898        4.3387       -.44123E-08   -.11548E-04
   2  norm          .10000E-03    3.3932        .82019E-07** at limit **
   3  Prefactor     .10000E-03    7.2367        .57311E-07** at limit **
   4  Prefactor     4.1394        4.1215        .16346E-06   -.40091E-04
   5  Prefactor     .11288E-03    36.130        .38317E-06** at limit **
   6  Prefactor     11.075        12.380       -.22630E-06   -.40649E-04
   7  Prefactor     .10000E-03    11.695        .37851E-07** at limit **
   8  norm          1.7518        3.1623        .37344E-06   -.31014E-04
   9  norm          .10000E-03    .76780        .10336E-06** at limit **
  10  norm          .28925        .46653        .27114E-06    .77304E-03
  11  norm          2.9079        2.1942        .32753E-07   -.39589E-04
  12  Prefactor     .10000E-03    9.6328       -.30893E-06** at limit **
  13  Prefactor     .10000E-03    36.095        .21431E-06** at limit **
  14  Prefactor     .10000E-03    46.480        .38675E-06** at limit **
  15  norm          .10000E-03    11.240       -.18918E-06** at limit **
  16  Prefactor     10.604        28.524       -.37186E-05   -.10355E-04
  17  Prefactor     10.267        111.33       -.29659E-05   -.66564E-05
  18  Prefactor     87.171        174.75        .98691E-05   -.17339E-04
  19  Prefactor     6.5901        34.552       -.40273E-05   -.96877E-05
  20  norm          .10000E-03    .54251        .31100E-07** at limit **
  21  Prefactor     .10000E-03    4.4915        .12509E-06** at limit **
  22  Normalizat    1.3374        .20634        .12195E-05   -.22485E-03
  23  Prefactor     .87947        .15687       -.16963E-05   -.37178E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 8.18975
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.1394
  Prefactor  = 0.00011288
  Prefactor  = 11.0747
  Prefactor  = 0.0001
  norm       = 1.75183
  norm       = 0.0001
  norm       = 0.289246
  norm       = 2.90792
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.6045
  Prefactor  = 10.2673
  Prefactor  = 87.1711
  Prefactor  = 6.59011
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.33741
  Prefactor  = 0.879467
 **********
 **   18 **HESSE 
 **********

 FCN=   6540.061     FROM HESSE     STATUS=OK           384 CALLS     3416 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.1898        4.3370        .11841E-03   -1.5136    
   2  norm          .10000E-03    3.4137        .14547E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.2573        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.1394        4.1153        .15594E-03   -1.5301    
   5  Prefactor     .11288E-03    36.777        .13130       -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.075        12.368        .12038E-03   -1.5042    
   7  Prefactor     .10000E-03    11.700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.7518        3.1287        .18559E-03   -1.5443    
   9  norm          .10000E-03    2.8350        .13441E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .28925        .42858        .69924E-03   -1.5600    
  11  norm          2.9079        2.1923        .99519E-04   -1.5367    
  12  Prefactor     .10000E-03    9.6427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    36.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    47.240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    11.263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     10.604        27.808        .12307E-03   -1.5057    
  17  Prefactor     10.267        108.95        .12538E-03   -1.5067    
  18  Prefactor     87.171        171.46        .21480E-03   -1.3838    
  19  Prefactor     6.5901        33.282        .15705E-03   -1.5194    
  20  norm          .10000E-03    7.6230        .11481E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.6253        .33464E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.3374        .23038        .25688E-03   -.82456    
  23  Prefactor     .87947        .17531        .24121E-03   -.96862    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.84488e-10
Minuit parameter uncertainties:
  1  4.33713
  2  5.12593e-07
  3  6.0576e-08
  4  4.1156
  5  0.0435549
  6  12.3709
  7  6.19116e-07
  8  3.12899
  9  5.14342e-05
  10  0.428583
  11  2.19241
  12  1.97791e-05
  13  6.05971e-06
  14  1.71895e-05
  15  3.07382e-05
  16  27.8418
  17  67.0493
  18  172.452
  19  29.6456
  20  3.28061e-05
  21  1.09521e-06
  22  0.230561
  23  0.175425
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  2.892e-01  4.286e-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:  8.795e-01  1.754e-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.337e+00  2.306e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/514887/likelihoodResults_357264001_357523201_4FGL_J0948.9+0022_daily_bin455.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) = 6539.42311451
delta logL = 0.637521833785

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6539.38802705
delta logL = 0.672609286457

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .17327       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.3227       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3599       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86375       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4750E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6539.388     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      217 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .17326        .21942        .77177E-02    .44410E-03
   2  alpha         1.3225        .53831        .44869       -.44282E-04
   3  Normalizat    1.3600        .18806        .57670E-01    .41494E-05
   4  Prefactor     .86372        .14763        .44541E-01    .13170E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.173257
  alpha      = 1.32249
  Normalizat = 1.35997
  Prefactor  = 0.863716
 **********
 **   18 **HESSE 
 **********

 FCN=   6539.388     FROM HESSE     STATUS=OK            35 CALLS      252 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .17326        .26337        .37202E-03   -1.5625    
   2  alpha         1.3225        .79251        .17475E-01   -.49043    
   3  Normalizat    1.3600        .22031        .25503E-03   -.81794    
   4  Prefactor     .86372        .17299        .24295E-03   -.97421    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.30153e-09
Minuit parameter uncertainties:
  1  0.263367
  2  0.810639
  3  0.220465
  4  0.173102
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/514887': 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) = 6539.38802698
delta logL = 0.672609363506

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.733e-01  2.634e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  1.322e+00  8.106e-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:  8.637e-01  1.731e-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.360e+00  2.205e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.04
Ra Dec: 147.244 0.372
Photon Index (Free Index): 1.32 +/- 0.81
Photon Flux (Free Index): 1.25e-08 +/- 1.64e-08
Energy Flux (Free Index): 1.10e-05 +/- 1.34e-05

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.70e-05', comment='SUCCESS', energy_flux2='1.10e-05', dlogl='6.73e-01', photon_flux2='1.25e-08', job_status='DONE', time_completed='2021-09-01 02:54:47.759701', photon_index_error2='0.81', photon_index2='1.32', ts='0.68', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='1.08e-07', energy_flux_error2='1.34e-05', EG='1.34', time_epoch_completed='1630490087.76', return_code='0', job_id='514887', GAL2='0.86', EG2='1.36', return_code2='0', photon_flux_error2='1.64e-08', ts2='2.04', photon_index='2.45' WHERE bin_id='455' 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 <lsf@bullet0110>
Subject: Job 514887: <4FGL_J0948.9+0022_daily_bin455> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin455 147.244 0.3717 357264001 357523201 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 :                                   632.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             273.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   825 sec.
    Turnaround time :                            826 sec.

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

