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


Performing analysis on: 4FGL_J1501.0+2238_daily_bin1398
RA = 225.257, Dec = 22.6364
tmin = 601689601, tmax = 601948801
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='937985', job_status='RUN', time_executed='2021-09-10 17:53:40.815227', time_epoch_executed='1631321620.82' WHERE source_name='4FGL J1501.0+2238' and cadence='daily' and bin_id='1398'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/937985

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/937985/ft1_4FGL_J1501.0+2238_daily_bin1398.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/937985/ft2_4FGL_J1501.0+2238_daily_bin1398.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/937985/ft1_4FGL_J1501.0+2238_daily_bin1398.fits outfile=/scratch/kocevski/937985/ft1_filteredMKT_4FGL_J1501.0+2238_daily_bin1398.fits ra=225.257 dec=22.6364 rad=12.0 tmin=601689601.0 tmax=601948801.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.55
user 3.33
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/937985/ft2_4FGL_J1501.0+2238_daily_bin1398.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/937985/ft1_filteredMKT_4FGL_J1501.0+2238_daily_bin1398.fits evtable="EVENTS" outfile="/scratch/kocevski/937985/ft1_filtered_4FGL_J1501.0+2238_daily_bin1398.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.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/937985/ft1_filtered_4FGL_J1501.0+2238_daily_bin1398.fits" evtable="EVENTS" scfile=/scratch/kocevski/937985/ft2_4FGL_J1501.0+2238_daily_bin1398.fits sctable="SC_DATA" outfile=/scratch/kocevski/937985/ltcube_601689601_601948801_4FGL_J1501.0+2238_daily_bin1398.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/937985/ft2_4FGL_J1501.0+2238_daily_bin1398.fits
.....................!
real 11.77
user 11.42
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/937985/ft1_filtered_4FGL_J1501.0+2238_daily_bin1398.fits evtable="EVENTS" scfile=/scratch/kocevski/937985/ft2_4FGL_J1501.0+2238_daily_bin1398.fits sctable="SC_DATA" expcube=/scratch/kocevski/937985/ltcube_601689601_601948801_4FGL_J1501.0+2238_daily_bin1398.fits outfile=/scratch/kocevski/937985/expmap_601689601_601948801_4FGL_J1501.0+2238_daily_bin1398.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/937985/ltcube_601689601_601948801_4FGL_J1501.0+2238_daily_bin1398.fits
.....................!
real 192.97
user 187.92
sys 4.45

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/937985/ft1_filtered_4FGL_J1501.0+2238_daily_bin1398.fits scfile=/scratch/kocevski/937985/ft2_4FGL_J1501.0+2238_daily_bin1398.fits outfile=/scratch/kocevski/937985/cmap_601689601_601948801_4FGL_J1501.0+2238_daily_bin1398.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.56
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/937985/ft1_filtered_4FGL_J1501.0+2238_daily_bin1398.fits scfile=/scratch/kocevski/937985/ft2_4FGL_J1501.0+2238_daily_bin1398.fits outfile=/scratch/kocevski/937985/cmap_HighResolution_601689601_601948801_4FGL_J1501.0+2238_daily_bin1398.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.55
user 0.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/937985/ft1_filtered_4FGL_J1501.0+2238_daily_bin1398.fits', '/scratch/kocevski/937985/ft2_4FGL_J1501.0+2238_daily_bin1398.fits', expMap='/scratch/kocevski/937985/expmap_601689601_601948801_4FGL_J1501.0+2238_daily_bin1398.fits', expCube='/scratch/kocevski/937985/ltcube_601689601_601948801_4FGL_J1501.0+2238_daily_bin1398.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/937985/Model_4FGL_J1501.0+2238_daily_bin1398.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/937985/ft1_filtered_4FGL_J1501.0+2238_daily_bin1398.fits
Spacecraft file(s): /scratch/kocevski/937985/ft2_4FGL_J1501.0+2238_daily_bin1398.fits
Exposure map: /scratch/kocevski/937985/expmap_601689601_601948801_4FGL_J1501.0+2238_daily_bin1398.fits
Exposure cube: /scratch/kocevski/937985/ltcube_601689601_601948801_4FGL_J1501.0+2238_daily_bin1398.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/937985/Model_4FGL_J1501.0+2238_daily_bin1398.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) = 7224.90403251

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.9717       1.0000         .10000E-03   10000.    
     2 'norm      '    4.4825       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.5011       1.0000         .10000E-03   10000.    
     5 'norm      '    1.3787       1.0000         .10000E-03   10000.    
     6 'Prefactor '    56.849       1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.886       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.8527       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.8463       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.1589       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .50888       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2844       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .88071       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=   7224.901     FROM MIGRAD    STATUS=CONVERGED    477 CALLS     2363 TOTAL
                     EDM=   .82E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.9739        7.7193        .20757E-05   -.21792E-04
   2  norm          4.4828        2.5384        .53720E-07    .34138E-04
   3  Prefactor     .10000E-03    5.5733       -.18842E-06** at limit **
   4  norm          2.5015        2.3344        .70786E-07    .98394E-04
   5  norm          1.3789        3.7191        .48119E-06   -.12995E-04
   6  Prefactor     56.871        41.171        .65101E-06    .20763E-03
   7  Prefactor     15.889        22.772        .84145E-07    .29902E-04
   8  Prefactor     4.8529        10.614        .12694E-05   -.10719E-03
   9  Prefactor     .10000E-03    6.2920        .18110E-06** at limit **
  10  Prefactor     .10000E-03    27.413       -.53177E-07** at limit **
  11  Prefactor     .10000E-03    3.7302       -.12596E-06** at limit **
  12  norm          .10000E-03    12.220        .10753E-06** at limit **
  13  Prefactor     .10000E-03    21.717       -.67063E-06** at limit **
  14  Prefactor     .10000E-03    1.9349       -.55359E-07** at limit **
  15  norm          2.8466        1.3614       -.43221E-06    .32654E-03
  16  Prefactor     .10000E-03    11.100       -.16502E-06** at limit **
  17  Prefactor     2.1596        7.6560        .73306E-05   -.38262E-03
  18  Prefactor     .10000E-03    12.675        .62630E-07** at limit **
  19  Prefactor     .50990        1.8397       -.51740E-07   -.25515E-03
  20  Prefactor     .10000E-03    9.1438       -.29167E-06** at limit **
  21  Normalizat    1.2839        .19636       -.53005E-05   -.13348E-03
  22  Prefactor     .88103        .12898        .38806E-05    .58076E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.97388
  norm       = 4.48277
  Prefactor  = 0.0001
  norm       = 2.50153
  norm       = 1.37891
  Prefactor  = 56.8711
  Prefactor  = 15.8891
  Prefactor  = 4.85286
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.84656
  Prefactor  = 0.0001
  Prefactor  = 2.15959
  Prefactor  = 0.0001
  Prefactor  = 0.509903
  Prefactor  = 0.0001
  Normalizat = 1.28393
  Prefactor  = 0.881028
 **********
 **   18 **HESSE 
 **********

 FCN=   7224.901     FROM HESSE     STATUS=OK           342 CALLS     2705 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.9739        7.7080        .10119E-02   -1.5309    
   2  norm          4.4828        2.5386        .98679E-04   -1.5284    
   3  Prefactor     .10000E-03    5.7135        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.5015        2.3316        .12070E-03   -1.5392    
   5  norm          1.3789        3.6971        .25868E-03   -1.5473    
   6  Prefactor     56.871        41.642        .53205E-04   -1.4198    
   7  Prefactor     15.889        22.778        .10049E-03   -1.4911    
   8  Prefactor     4.8529        10.628        .91304E-03   -1.5267    
   9  Prefactor     .10000E-03    6.2973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    27.699        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.7615        .16033E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    12.221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    21.790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.9401        .11547E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.8466        1.3816        .59521E-04   -1.5371    
  16  Prefactor     .10000E-03    11.120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.1596        7.9582        .14018E-02   -1.5414    
  18  Prefactor     .10000E-03    12.681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .50990        2.7954        .20548E-02   -1.5565    
  20  Prefactor     .10000E-03    9.1583        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.2839        .22833        .26128E-03   -.84047    
  22  Prefactor     .88103        .15367        .21823E-03   -.96807    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.77844e-08
Minuit parameter uncertainties:
  1  7.70992
  2  2.53864
  3  9.45913e-06
  4  2.33171
  5  3.6977
  6  41.663
  7  22.7905
  8  10.6323
  9  1.34161e-05
  10  0.000284704
  11  1.93001e-05
  12  2.92759e-05
  13  8.63508e-05
  14  5.18058e-06
  15  1.38164
  16  4.58785e-05
  17  7.96208
  18  5.20073e-05
  19  2.38771
  20  2.21389e-05
  21  0.228512
  22  0.153747
Done.

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

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  1.000e-04  1.930e-05  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:  8.810e-01  1.537e-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:  1.284e+00  2.285e-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.60e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.45e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/937985/likelihoodResults_601689601_601948801_4FGL_J1501.0+2238_daily_bin1398.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) = 7224.90234224
delta logL = -0.00126574826118

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7224.90107635
delta logL = 1.43498255056e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10149E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9750       1.0000          .0000       10.000    
     3 'Normalizat'    1.2839       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88106       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=   7224.901     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      239 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10106E-03    28.589        .16470E-02** at limit **
   2  Index         1.9272        5.7918        .50000        .44135E-04
   3  Normalizat    1.2839        .12535E-01    .26128E-03    .19841E-04
   4  Prefactor     .88102        .89080E-02    .21823E-03    .12816E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101056
  Index      = 1.92718
  Normalizat = 1.28394
  Prefactor  = 0.881024
 **********
 **   18 **HESSE 
 **********

 FCN=   7224.901     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      268 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10106E-03    125.49        .32939E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9272        6.1686        .50000       -.66183    
   3  Normalizat    1.2839        .27009E-01    .10451E-04   -.84047    
   4  Prefactor     .88102        .19194E-01    .87290E-05   -.96807    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.82482e-08
Minuit parameter uncertainties:
  1  0.0230765
  2  257.028
  3  0.0270089
  4  0.0191938
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/937985': 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) = 7224.90107568
delta logL = 8.17339241621e-07

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  1.011e-04  2.308e-02  1.000e-04  1.000e+04 ( 1.000e-13)
240        Index:  1.927e+00  2.570e+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:  8.810e-01  1.919e-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:  1.284e+00  2.701e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/937985/cmap_HighResolution_601689601_601948801_4FGL_J1501.0+2238_daily_bin1398.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.45e-03', job_status='DONE', photon_flux_upper_limit='4.60e-08', time_completed='2021-09-10 18:04:34.286709', job_id='937985', GAL2='0.88', fit_tolerance='1e-08', EG2='1.28', EG='1.28', time_epoch_completed='1631322274.29', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='8.17e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1398' AND source_name='4FGL J1501.0+2238' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 18:04:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 937985: <4FGL_J1501.0+2238_daily_bin1398> in cluster <slac> Done

Job <4FGL_J1501.0+2238_daily_bin1398> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Sep 10 17:51:31 2021
Job was executed on host(s) <bullet0208>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 17:51:32 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:51:32 2021
Terminated at Fri Sep 10 18:04:34 2021
Results reported at Fri Sep 10 18:04:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1501.0+2238_daily_bin1398 225.257 22.6364 601689601 601948801 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 :                                   639.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             314.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   782 sec.
    Turnaround time :                            783 sec.

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

