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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin269
RA = 147.244, Dec = 0.3717
tmin = 309052801, tmax = 309312001
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='514573', job_status='RUN', time_executed='2021-09-01 02:43:58.361184', time_epoch_executed='1630489438.36' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='269'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/514573

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/514573/ft1_4FGL_J0948.9+0022_daily_bin269.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/514573/ft2_4FGL_J0948.9+0022_daily_bin269.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/514573/ft1_4FGL_J0948.9+0022_daily_bin269.fits outfile=/scratch/kocevski/514573/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin269.fits ra=147.244 dec=0.3717 rad=12.0 tmin=309052801.0 tmax=309312001.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.89
user 3.16
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/514573/ft1_filtered_4FGL_J0948.9+0022_daily_bin269.fits" evtable="EVENTS" scfile=/scratch/kocevski/514573/ft2_4FGL_J0948.9+0022_daily_bin269.fits sctable="SC_DATA" outfile=/scratch/kocevski/514573/ltcube_309052801_309312001_4FGL_J0948.9+0022_daily_bin269.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/514573/ft2_4FGL_J0948.9+0022_daily_bin269.fits
.....................!
real 12.33
user 11.68
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/514573/ft1_filtered_4FGL_J0948.9+0022_daily_bin269.fits evtable="EVENTS" scfile=/scratch/kocevski/514573/ft2_4FGL_J0948.9+0022_daily_bin269.fits sctable="SC_DATA" expcube=/scratch/kocevski/514573/ltcube_309052801_309312001_4FGL_J0948.9+0022_daily_bin269.fits outfile=/scratch/kocevski/514573/expmap_309052801_309312001_4FGL_J0948.9+0022_daily_bin269.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/514573/ltcube_309052801_309312001_4FGL_J0948.9+0022_daily_bin269.fits
.....................!
real 193.44
user 186.28
sys 5.41

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/514573/ft1_filtered_4FGL_J0948.9+0022_daily_bin269.fits scfile=/scratch/kocevski/514573/ft2_4FGL_J0948.9+0022_daily_bin269.fits outfile=/scratch/kocevski/514573/cmap_309052801_309312001_4FGL_J0948.9+0022_daily_bin269.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.59
user 0.39
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    17.803       1.0000         .10000E-03   10000.    
     2 'norm      '    5.3562       1.0000         .10000E-03   10000.    
     3 'Prefactor '    44.538       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11049E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    21.701       1.0000         .10000E-03   10000.    
     7 'Prefactor '    61.552       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.4430       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.0628       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    53.367       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10540E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.9205       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .48132E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    40.238       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .25931E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.3620       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .68802E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1484       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .80063       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=   4929.405     FROM MIGRAD    STATUS=CONVERGED    527 CALLS     2648 TOTAL
                     EDM=   .52E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          17.803        6.2479        .83987E-07    .13638E-03
   2  norm          5.3590        8.4821        .24544E-06    .63668E-04
   3  Prefactor     44.528        28.197       -.49791E-06    .30122E-05
   4  Prefactor     .10000E-03    1.3440       -.11243E-06** at limit **
   5  Prefactor     .10000E-03    38.188       -.87944E-06** at limit **
   6  Prefactor     21.703        16.943        .26497E-06    .43852E-04
   7  Prefactor     61.559        54.967        .48647E-06    .25305E-04
   8  norm          .10000E-03    5.4119       -.37252E-06** at limit **
   9  norm          1.4430        1.2025       -.86846E-07   -.15032E-04
  10  norm          .10000E-03    .27455       -.33680E-07** at limit **
  11  norm          3.0629        2.5743        .10048E-07    .28261E-04
  12  Prefactor     .10000E-03    4.1805       -.16372E-06** at limit **
  13  Prefactor     53.375        48.036        .86266E-06    .44414E-04
  14  Prefactor     .10000E-03    127.69       -.26501E-05** at limit **
  15  norm          .10000E-03    6.0477       -.13163E-06** at limit **
  16  Prefactor     2.8736        56.756        .45888E-06   -.50058E-04
  17  Prefactor     .10000E-03    188.79       -.14130E-05** at limit **
  18  Prefactor     40.344        122.19       -.11410E-05   -.34092E-04
  19  Prefactor     .10000E-03    30.635        .11039E-05** at limit **
  20  norm          2.3620        1.6188       -.16649E-07   -.12795E-03
  21  Prefactor     .10000E-03    80.410        .27449E-05** at limit **
  22  Normalizat    1.1483        .26521        .42303E-05    .71835E-05
  23  Prefactor     .80069        .19390       -.26179E-05    .60409E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 17.8034
  norm       = 5.359
  Prefactor  = 44.5282
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.7032
  Prefactor  = 61.5587
  norm       = 0.0001
  norm       = 1.44297
  norm       = 0.0001
  norm       = 3.06286
  Prefactor  = 0.0001
  Prefactor  = 53.3746
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.87365
  Prefactor  = 0.000100004
  Prefactor  = 40.3437
  Prefactor  = 0.0001
  norm       = 2.36201
  Prefactor  = 0.0001
  Normalizat = 1.1483
  Prefactor  = 0.800685
 **********
 **   18 **HESSE 
 **********

 FCN=   4929.405     FROM HESSE     STATUS=OK           372 CALLS     3020 TOTAL
                     EDM=   .98E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          17.803        6.2555        .94922E-04   -1.4864    
   2  norm          5.3590        8.4864        .17365E-03   -1.5245    
   3  Prefactor     44.528        28.163        .60074E-04   -1.4372    
   4  Prefactor     .10000E-03    1.3558        .79570E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    38.294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     21.703        16.991        .85981E-04   -1.4776    
   7  Prefactor     61.559        55.035        .51144E-04   -1.4137    
   8  norm          .10000E-03    5.6567        .31928E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.4430        1.1898        .67235E-04   -1.5468    
  10  norm          .10000E-03    .33959        .70917E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.0629        2.5761        .99255E-04   -1.5358    
  12  Prefactor     .10000E-03    4.1890        .14028E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     53.375        48.285        .54904E-04   -1.4246    
  14  Prefactor     .10000E-03    130.10        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    6.0546        .16867E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.8736        58.524        .23772E-03   -1.5369    
  17  Prefactor     .10000E-03    191.49        .21176E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     40.344        124.22        .63191E-04   -1.4437    
  19  Prefactor     .10000E-03    29.745        .21450E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.3620        1.6076        .70715E-04   -1.5401    
  21  Prefactor     .10000E-03    77.189        .26559E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1483        .26772        .26121E-03   -.88216    
  23  Prefactor     .80069        .19827        .24066E-03   -.99703    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.77854e-11
Minuit parameter uncertainties:
  1  6.25573
  2  8.48831
  3  28.1715
  4  1.50973e-06
  5  5.96519e-05
  6  16.9946
  7  55.0809
  8  5.1899e-07
  9  1.18979
  10  1.20833e-06
  11  2.5762
  12  1.02917e-05
  13  48.3208
  14  0.000464473
  15  1.45327e-05
  16  25.9654
  17  0.00180102
  18  125.03
  19  0.000232968
  20  1.60767
  21  4.8148e-05
  22  0.268035
  23  0.198442
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.000e-04  1.208e-06  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.007e-01  1.984e-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.148e+00  2.680e-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.63e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.40e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/514573/likelihoodResults_309052801_309312001_4FGL_J0948.9+0022_daily_bin269.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) = 4929.40489801
delta logL = -4.13932139054e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4929.40486923
delta logL = 2.46319177677e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.7409       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1483       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80067       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=   4929.405     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      283 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .44805        .63073E-03** at limit **
   2  alpha         3.4306        2.9526        .20000       -.17474E-06
   3  Normalizat    1.1483        .24803        .26122E-03    .11689E-02
   4  Prefactor     .80069        .19547        .24066E-03    .13222E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 3.43063
  Normalizat = 1.14829
  Prefactor  = 0.800692
 **********
 **   18 **HESSE 
 **********

 FCN=   4929.405     FROM HESSE     STATUS=OK            23 CALLS      306 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .41499        .12615E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.4306        4.0629        .80000E-02    .38143    
   3  Normalizat    1.1483        .24823        .52244E-04   -.88216    
   4  Prefactor     .80069        .19563        .48132E-04   -.99703    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.3712e-09
Minuit parameter uncertainties:
  1  4.4758e-06
  2  151.478
  3  0.248483
  4  0.195802
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/514573': 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) = 4929.40486717
delta logL = 2.67000432359e-05

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.000e-04  4.476e-06  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  3.431e+00  1.515e+02  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.007e-01  1.958e-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.148e+00  2.485e-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/514573/cmap_HighResolution_309052801_309312001_4FGL_J0948.9+0022_daily_bin269.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.40e-05', job_status='DONE', photon_flux_upper_limit='9.63e-08', time_completed='2021-09-01 02:53:21.283141', job_id='514573', GAL2='0.80', fit_tolerance='1e-08', EG2='1.15', EG='1.15', time_epoch_completed='1630490001.28', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='2.67e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='269' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:53:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 514573: <4FGL_J0948.9+0022_daily_bin269> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin269 147.244 0.3717 309052801 309312001 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 :                                   549.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             293.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   762 sec.
    Turnaround time :                            764 sec.

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

