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


Performing analysis on: 4FGL_J1501.0+2238_daily_bin490
RA = 225.257, Dec = 22.6364
tmin = 366336001, tmax = 366595201
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='933529', job_status='RUN', time_executed='2021-09-10 17:36:35.990758', time_epoch_executed='1631320595.99' WHERE source_name='4FGL J1501.0+2238' and cadence='daily' and bin_id='490'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/933529

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/933529/ft1_4FGL_J1501.0+2238_daily_bin490.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/933529/ft2_4FGL_J1501.0+2238_daily_bin490.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/933529/ft1_4FGL_J1501.0+2238_daily_bin490.fits outfile=/scratch/kocevski/933529/ft1_filteredMKT_4FGL_J1501.0+2238_daily_bin490.fits ra=225.257 dec=22.6364 rad=12.0 tmin=366336001.0 tmax=366595201.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 5.50
user 5.21
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/933529/ft2_4FGL_J1501.0+2238_daily_bin490.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/933529/ft2_4FGL_J1501.0+2238_daily_bin490.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/933529/ft1_filteredMKT_4FGL_J1501.0+2238_daily_bin490.fits evtable="EVENTS" outfile="/scratch/kocevski/933529/ft1_filtered_4FGL_J1501.0+2238_daily_bin490.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.50
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/933529/ft1_filtered_4FGL_J1501.0+2238_daily_bin490.fits" evtable="EVENTS" scfile=/scratch/kocevski/933529/ft2_4FGL_J1501.0+2238_daily_bin490.fits sctable="SC_DATA" outfile=/scratch/kocevski/933529/ltcube_366336001_366595201_4FGL_J1501.0+2238_daily_bin490.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/933529/ft2_4FGL_J1501.0+2238_daily_bin490.fits
.....................!
real 11.35
user 10.98
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/933529/ft1_filtered_4FGL_J1501.0+2238_daily_bin490.fits evtable="EVENTS" scfile=/scratch/kocevski/933529/ft2_4FGL_J1501.0+2238_daily_bin490.fits sctable="SC_DATA" expcube=/scratch/kocevski/933529/ltcube_366336001_366595201_4FGL_J1501.0+2238_daily_bin490.fits outfile=/scratch/kocevski/933529/expmap_366336001_366595201_4FGL_J1501.0+2238_daily_bin490.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/933529/ltcube_366336001_366595201_4FGL_J1501.0+2238_daily_bin490.fits
.....................!
real 193.49
user 188.41
sys 4.73

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 161 point sources and 0 extended sources

Setting source of interest to:
4FGL J1501.0+2238 @ 225.257 22.6364

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/933529/ft1_filtered_4FGL_J1501.0+2238_daily_bin490.fits scfile=/scratch/kocevski/933529/ft2_4FGL_J1501.0+2238_daily_bin490.fits outfile=/scratch/kocevski/933529/cmap_366336001_366595201_4FGL_J1501.0+2238_daily_bin490.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=225.257 yref=22.6364 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/933529/ft1_filtered_4FGL_J1501.0+2238_daily_bin490.fits scfile=/scratch/kocevski/933529/ft2_4FGL_J1501.0+2238_daily_bin490.fits outfile=/scratch/kocevski/933529/cmap_HighResolution_366336001_366595201_4FGL_J1501.0+2238_daily_bin490.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=225.257 yref=22.6364 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.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/933529/ft1_filtered_4FGL_J1501.0+2238_daily_bin490.fits evtable="EVENTS" scfile=/scratch/kocevski/933529/ft2_4FGL_J1501.0+2238_daily_bin490.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/933529/Model_4FGL_J1501.0+2238_daily_bin490.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/933529/ft1_filtered_4FGL_J1501.0+2238_daily_bin490.fits....................!
real 54.10
user 52.22
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/933529/ft1_filtered_4FGL_J1501.0+2238_daily_bin490.fits', '/scratch/kocevski/933529/ft2_4FGL_J1501.0+2238_daily_bin490.fits', expMap='/scratch/kocevski/933529/expmap_366336001_366595201_4FGL_J1501.0+2238_daily_bin490.fits', expCube='/scratch/kocevski/933529/ltcube_366336001_366595201_4FGL_J1501.0+2238_daily_bin490.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/933529/Model_4FGL_J1501.0+2238_daily_bin490.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1501.0+2238'

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  3.674e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
240        Index:  2.002e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
241        Scale:  1.799e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/933529/ft1_filtered_4FGL_J1501.0+2238_daily_bin490.fits
Spacecraft file(s): /scratch/kocevski/933529/ft2_4FGL_J1501.0+2238_daily_bin490.fits
Exposure map: /scratch/kocevski/933529/expmap_366336001_366595201_4FGL_J1501.0+2238_daily_bin490.fits
Exposure cube: /scratch/kocevski/933529/ltcube_366336001_366595201_4FGL_J1501.0+2238_daily_bin490.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/933529/Model_4FGL_J1501.0+2238_daily_bin490.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) = 6868.1702152

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    7.1226       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .17628       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .19340E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.6296       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.160       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10322E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    67.238       1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.426       1.0000         .10000E-03   10000.    
    15 'norm      '    3.1885       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10467E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    28.834       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.2730       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11682E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .89517       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1091       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6868.167     FROM MIGRAD    STATUS=CONVERGED    499 CALLS     2368 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.3751        .32242E-07** at limit **
   2  norm          7.1252        3.1655        .19305E-07    .39095E-03
   3  Prefactor     .10000E-03    7.7225        .82173E-07** at limit **
   4  norm          .10000E-03    1.2629        .12523E-06** at limit **
   5  norm          .20469        4.4178       -.39498E-05    .12587E-02
   6  Prefactor     .10000E-03    197.33        .56438E-05** at limit **
   7  Prefactor     7.6152        32.471       -.33711E-04   -.21245E-04
   8  Prefactor     .10000E-03    6.9590        .16073E-07** at limit **
   9  Prefactor     19.214        29.845        .90712E-05    .77425E-04
  10  Prefactor     .10000E-03    14.388        .26951E-05** at limit **
  11  Prefactor     .10000E-03    3.4816        .92117E-08** at limit **
  12  norm          .10000E-03    16.142       -.59939E-05** at limit **
  13  Prefactor     67.248        57.607        .78097E-05    .23350E-04
  14  Prefactor     11.430        9.3857       -.10429E-05    .17371E-04
  15  norm          3.1890        1.4681       -.66349E-07   -.50574E-04
  16  Prefactor     .10000E-03    48.264        .11882E-05** at limit **
  17  Prefactor     .10000E-03    7.4176        .29451E-06** at limit **
  18  Prefactor     28.837        28.624        .22070E-06    .17918E-05
  19  Prefactor     4.2746        3.5139       -.30531E-06   -.39953E-03
  20  Prefactor     .10000E-03    34.785       -.26925E-05** at limit **
  21  Normalizat    .89472        .20222        .24586E-05    .32421E-03
  22  Prefactor     1.1091        .13912       -.11858E-07    .64528E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 7.12523
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.204692
  Prefactor  = 0.000100001
  Prefactor  = 7.61519
  Prefactor  = 0.0001
  Prefactor  = 19.2143
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 67.2484
  Prefactor  = 11.4296
  norm       = 3.18897
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.8369
  Prefactor  = 4.27464
  Prefactor  = 0.0001
  Normalizat = 0.894717
  Prefactor  = 1.1091
 **********
 **   18 **HESSE 
 **********

 FCN=   6868.167     FROM HESSE     STATUS=OK           336 CALLS     2704 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.4218        .16928E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          7.1252        3.1659        .95014E-04   -1.5174    
   3  Prefactor     .10000E-03    7.9653        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.2828        .90928E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .20469        21.336        .32085E-02   -1.5617    
   6  Prefactor     .10000E-03    204.33        .40518E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.6152        33.192        .14518E-03   -1.5156    
   8  Prefactor     .10000E-03    6.9762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     19.214        29.845        .91502E-04   -1.4831    
  10  Prefactor     .10000E-03    14.387        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.4982        .15101E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    16.145        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     67.248        57.616        .48947E-04   -1.4066    
  14  Prefactor     11.430        9.3886        .11852E-03   -1.5032    
  15  norm          3.1890        1.4683        .65010E-04   -1.5351    
  16  Prefactor     .10000E-03    48.591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.4757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     28.837        28.614        .74611E-04   -1.4633    
  19  Prefactor     4.2746        3.5124        .13401E-03   -1.5294    
  20  Prefactor     .10000E-03    34.985        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .89472        .23107        .32032E-03   -.96646    
  22  Prefactor     1.1091        .16070        .20386E-03   -.89176    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53673e-08
Minuit parameter uncertainties:
  1  7.1676e-06
  2  3.16598
  3  8.85444e-05
  4  1.31916e-05
  5  4.1801
  6  0.000998924
  7  31.8266
  8  2.09013e-05
  9  29.8686
  10  1.35197e-05
  11  6.15825e-07
  12  5.32444e-06
  13  57.6641
  14  9.38981
  15  1.46834
  16  0.000241301
  17  6.81671e-06
  18  28.6276
  19  3.51252
  20  8.84262e-05
  21  0.23133
  22  0.160773
Done.

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

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  1.000e-04  6.158e-07  1.000e-04  1.000e+04 ( 1.000e-13)
240        Index:  2.002e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
241        Scale:  1.799e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  1.109e+00  1.608e-01  0.000e+00  1.000e+01 ( 1.000e+00)
518        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
519        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
516   Normalization:  8.947e-01  2.313e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 225.257 22.636
Photon Flux Upper Limit: 4.89e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.67e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/933529/likelihoodResults_366336001_366595201_4FGL_J1501.0+2238_daily_bin490.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6868.1684638
delta logL = -0.00135882664381

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6868.16710502
delta logL = -4.81368260807e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9885       1.0000          .0000       10.000    
     3 'Normalizat'    .89462       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1092       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5200E+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=   6868.167     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      234 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10044E-03    37.752        .15202E-02** at limit **
   2  Index         1.9568        9.0142        .50000        .24330E-04
   3  Normalizat    .89472        .16466E-01    .32032E-03    .17313E-03
   4  Prefactor     1.1091        .11614E-01    .20386E-03    .29131E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100436
  Index      = 1.9568
  Normalizat = 0.894718
  Prefactor  = 1.1091
 **********
 **   18 **HESSE 
 **********

 FCN=   6868.167     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      263 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10044E-03    165.34        .30404E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9568        5.6249        .50000       -.65435    
   3  Normalizat    .89472        .36008E-01    .12813E-04   -.96646    
   4  Prefactor     1.1091        .25396E-01    .40771E-04   -.89176    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.85498e-08
Minuit parameter uncertainties:
  1  0.01702
  2  400.33
  3  0.0360093
  4  0.0253961
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/933529': 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): 102
logL (Free Index) = 6868.16710473
delta logL = 2.46740455623e-07

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  1.004e-04  1.702e-02  1.000e-04  1.000e+04 ( 1.000e-13)
240        Index:  1.957e+00  4.003e+02  0.000e+00  1.000e+01 (-1.000e+00)
241        Scale:  1.799e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  1.109e+00  2.540e-02  0.000e+00  1.000e+01 ( 1.000e+00)
518        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
519        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
516   Normalization:  8.947e-01  3.601e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 225.257 22.636

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/933529/cmap_HighResolution_366336001_366595201_4FGL_J1501.0+2238_daily_bin490.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.67e-03', job_status='DONE', photon_flux_upper_limit='4.89e-08', time_completed='2021-09-10 17:47:04.068083', job_id='933529', GAL2='1.11', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1631321224.07', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='2.47e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='490' AND source_name='4FGL J1501.0+2238' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 17:47:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0146>
Subject: Job 933529: <4FGL_J1501.0+2238_daily_bin490> in cluster <slac> Done

Job <4FGL_J1501.0+2238_daily_bin490> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep 10 17:36:22 2021
Job was executed on host(s) <bullet0146>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 17:36:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 17:36:23 2021
Terminated at Fri Sep 10 17:47:04 2021
Results reported at Fri Sep 10 17:47:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1501.0+2238_daily_bin490 225.257 22.6364 366336001 366595201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1501.0+2238 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   618.30 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             348.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   641 sec.
    Turnaround time :                            642 sec.

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

