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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin305
RA = 147.244, Dec = 0.3717
tmin = 318384001, tmax = 318643201
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='514639', job_status='RUN', time_executed='2021-09-01 02:43:03.250885', time_epoch_executed='1630489383.25' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='305'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/514639

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/514639/ft1_4FGL_J0948.9+0022_daily_bin305.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/514639/ft2_4FGL_J0948.9+0022_daily_bin305.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/514639/ft1_4FGL_J0948.9+0022_daily_bin305.fits outfile=/scratch/kocevski/514639/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin305.fits ra=147.244 dec=0.3717 rad=12.0 tmin=318384001.0 tmax=318643201.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.31
user 3.04
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/514639/ft1_filtered_4FGL_J0948.9+0022_daily_bin305.fits evtable="EVENTS" scfile=/scratch/kocevski/514639/ft2_4FGL_J0948.9+0022_daily_bin305.fits sctable="SC_DATA" expcube=/scratch/kocevski/514639/ltcube_318384001_318643201_4FGL_J0948.9+0022_daily_bin305.fits outfile=/scratch/kocevski/514639/expmap_318384001_318643201_4FGL_J0948.9+0022_daily_bin305.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/514639/ltcube_318384001_318643201_4FGL_J0948.9+0022_daily_bin305.fits
.....................!
real 190.03
user 185.15
sys 4.49

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/514639/ft1_filtered_4FGL_J0948.9+0022_daily_bin305.fits scfile=/scratch/kocevski/514639/ft2_4FGL_J0948.9+0022_daily_bin305.fits outfile=/scratch/kocevski/514639/cmap_318384001_318643201_4FGL_J0948.9+0022_daily_bin305.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/514639/ft1_filtered_4FGL_J0948.9+0022_daily_bin305.fits scfile=/scratch/kocevski/514639/ft2_4FGL_J0948.9+0022_daily_bin305.fits outfile=/scratch/kocevski/514639/cmap_HighResolution_318384001_318643201_4FGL_J0948.9+0022_daily_bin305.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    23.907       1.0000         .10000E-03   10000.    
     2 'norm      '    11.853       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.8456       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11721E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.3173       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .54252       1.0000         .10000E-03   10000.    
    15 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10233E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11779E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12745E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    30.178       1.0000         .10000E-03   10000.    
    20 'norm      '    1.7195       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.4952       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .71320       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=   5274.008     FROM MIGRAD    STATUS=CONVERGED    904 CALLS     2573 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          23.907        7.3792        .81925E-04   -.24812E-03
   2  norm          11.849        10.059        .11636E-03   -.16590E-03
   3  Prefactor     .10000E-03    20.939        .18142E-02** at limit **
   4  Prefactor     4.8435        3.6976        .11756E-03   -.21158E-03
   5  Prefactor     .10000E-03    20.739        .18142E-02** at limit **
   6  Prefactor     .10000E-03    55.181        .36285E-03** at limit **
   7  Prefactor     .10000E-03    30.692        .18142E-02** at limit **
   8  norm          .10000E-03    1.6090        .89807E-03** at limit **
   9  norm          .10000E-03    .79470        .10248E-02** at limit **
  10  norm          .10000E-03    .52643        .73855E-03** at limit **
  11  norm          3.3173        2.0829        .80666E-04    .18322E-05
  12  Prefactor     .10000E-03    5.0577        .15935E-02** at limit **
  13  Prefactor     .10000E-03    19.088        .18142E-02** at limit **
  14  Prefactor     .47354        43.050        .11963        .11378E-03
  15  norm          .10000E-03    4.9818        .15826E-02** at limit **
  16  Prefactor     .10000E-03    3.9590        .14102E-02** at limit **
  17  Prefactor     .10000E-03    43.343        .18142E-02** at limit **
  18  Prefactor     .10000E-03    36.395        .18142E-02** at limit **
  19  Prefactor     30.159        21.133        .72934E-04    .25408E-04
  20  norm          1.7200        1.3813        .73764E-04   -.81685E-05
  21  Prefactor     .10000E-03    2.9100        .12067E-02** at limit **
  22  Normalizat    1.4953        .25700        .24407E-03   -.36462E-03
  23  Prefactor     .71331        .19879        .26557E-03   -.26075E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 23.907
  norm       = 11.8488
  Prefactor  = 0.0001
  Prefactor  = 4.84347
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.31725
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.473544
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.1594
  norm       = 1.72003
  Prefactor  = 0.0001
  Normalizat = 1.49525
  Prefactor  = 0.713313
 **********
 **   18 **HESSE 
 **********

 FCN=   5274.008     FROM HESSE     STATUS=OK           356 CALLS     2929 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          23.907        7.3791        .32770E-05   -1.4730    
   2  norm          11.849        10.058        .46544E-05   -1.5019    
   3  Prefactor     .10000E-03    20.942        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.8435        3.6975        .47026E-05   -1.5268    
   5  Prefactor     .10000E-03    20.739        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    55.184        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    30.694        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.6091        .17961E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .79539        .20496E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .52716        .14771E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.3173        2.0829        .32266E-05   -1.5344    
  12  Prefactor     .10000E-03    5.0580        .31870E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    19.089        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .47354        40.190        .12519       -1.5570    
  15  norm          .10000E-03    4.9819        .31653E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.9591        .28203E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    43.348        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    36.396        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     30.159        21.135        .29173E-05   -1.4609    
  20  norm          1.7200        1.3813        .29506E-05   -1.5446    
  21  Prefactor     .10000E-03    2.9103        .24133E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.4953        .25719        .48814E-04   -.77912    
  23  Prefactor     .71331        .19897        .10623E-04   -1.0301    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.71973e-10
Minuit parameter uncertainties:
  1  7.37936
  2  10.0598
  3  5.11436e-05
  4  3.69771
  5  2.48039e-05
  6  0.00046844
  7  6.86478e-05
  8  1.95245e-06
  9  4.28199e-06
  10  1.40845e-05
  11  2.08293
  12  6.7893e-06
  13  3.85547e-05
  14  8.73022
  15  4.90011e-06
  16  1.24668e-05
  17  5.59883e-05
  18  0.000145072
  19  21.1401
  20  1.38136
  21  2.79585e-06
  22  0.257411
  23  0.199172
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.000e-04  1.408e-05  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.133e-01  1.992e-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.495e+00  2.574e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/514639/likelihoodResults_318384001_318643201_4FGL_J0948.9+0022_daily_bin305.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) = 5274.01710841
delta logL = -0.00906291290721

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5274.0080453
delta logL = 1.96889232029e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4458       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4953       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71332       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=   5274.008     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      206 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .36867        .21092E-01** at limit **
   2  alpha         2.4384        3.6223        .41164        .77468E-04
   3  Normalizat    1.4953        .21447        .55200E-01    .14578E-04
   4  Prefactor     .71331        .16843        .42578E-01    .29288E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.43838
  Normalizat = 1.49525
  Prefactor  = 0.713313
 **********
 **   18 **HESSE 
 **********

 FCN=   5274.008     FROM HESSE     STATUS=OK            29 CALLS      235 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .52878        .73760E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4384        3.5374        .16466       -.24652E-01
   3  Normalizat    1.4953        .25046        .24407E-03   -.77912    
   4  Prefactor     .71331        .19727        .26557E-03   -1.0301    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.0081e-09
Minuit parameter uncertainties:
  1  1.70372e-06
  2  2.4993
  3  0.250673
  4  0.197466
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/514639': 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) = 5274.00804506
delta logL = 4.41578777099e-07

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.000e-04  1.704e-06  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  2.438e+00  2.499e+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.133e-01  1.975e-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.495e+00  2.507e-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/514639/cmap_HighResolution_318384001_318643201_4FGL_J0948.9+0022_daily_bin305.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.42e-05', job_status='DONE', photon_flux_upper_limit='9.73e-08', time_completed='2021-09-01 02:52:47.024020', job_id='514639', GAL2='0.71', fit_tolerance='1e-08', EG2='1.50', EG='1.50', time_epoch_completed='1630489967.02', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='4.42e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='305' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:52:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0274>
Subject: Job 514639: <4FGL_J0948.9+0022_daily_bin305> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin305 147.244 0.3717 318384001 318643201 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 :                                   550.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             269.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   723 sec.
    Turnaround time :                            724 sec.

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

