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


Performing analysis on: 4FGL_J1501.0+2238_daily_bin338
RA = 225.257, Dec = 22.6364
tmin = 326937601, tmax = 327196801
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='933257', job_status='RUN', time_executed='2021-09-10 17:36:25.033021', time_epoch_executed='1631320585.03' WHERE source_name='4FGL J1501.0+2238' and cadence='daily' and bin_id='338'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/933257

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/933257/ft1_4FGL_J1501.0+2238_daily_bin338.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/933257/ft2_4FGL_J1501.0+2238_daily_bin338.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/933257/ft1_4FGL_J1501.0+2238_daily_bin338.fits outfile=/scratch/kocevski/933257/ft1_filteredMKT_4FGL_J1501.0+2238_daily_bin338.fits ra=225.257 dec=22.6364 rad=12.0 tmin=326937601.0 tmax=327196801.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.08
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/933257/ft1_filtered_4FGL_J1501.0+2238_daily_bin338.fits evtable="EVENTS" scfile=/scratch/kocevski/933257/ft2_4FGL_J1501.0+2238_daily_bin338.fits sctable="SC_DATA" expcube=/scratch/kocevski/933257/ltcube_326937601_327196801_4FGL_J1501.0+2238_daily_bin338.fits outfile=/scratch/kocevski/933257/expmap_326937601_327196801_4FGL_J1501.0+2238_daily_bin338.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/933257/ltcube_326937601_327196801_4FGL_J1501.0+2238_daily_bin338.fits
.....................!
real 191.50
user 185.84
sys 5.16

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/933257/ft1_filtered_4FGL_J1501.0+2238_daily_bin338.fits scfile=/scratch/kocevski/933257/ft2_4FGL_J1501.0+2238_daily_bin338.fits outfile=/scratch/kocevski/933257/cmap_326937601_327196801_4FGL_J1501.0+2238_daily_bin338.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/933257/ft1_filtered_4FGL_J1501.0+2238_daily_bin338.fits scfile=/scratch/kocevski/933257/ft2_4FGL_J1501.0+2238_daily_bin338.fits outfile=/scratch/kocevski/933257/cmap_HighResolution_326937601_327196801_4FGL_J1501.0+2238_daily_bin338.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    14.392       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    6.0488       1.0000         .10000E-03   10000.    
     5 'norm      '    5.7611       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11014E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .59216E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    22.266       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11042E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.5125       1.0000         .10000E-03   10000.    
    12 'norm      '    41.495       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.7043       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.4940       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10487E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10369E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .17225       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .90215       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12178E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2432       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .78587       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=   6626.073     FROM MIGRAD    STATUS=CONVERGED    898 CALLS     2793 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.2372        .11884E-02** at limit **
   2  norm          14.392        4.1359        .85514E-04    .17283E-05
   3  Prefactor     .10000E-03    3.5393        .14834E-02** at limit **
   4  norm          6.0491        3.2028        .10177E-03    .44684E-06
   5  norm          5.7607        3.9850        .13103E-03    .20042E-04
   6  Prefactor     .10000E-03    7.7522        .18142E-02** at limit **
   7  Prefactor     .10000E-03    24.743        .18142E-02** at limit **
   8  Prefactor     .10000E-03    83.106        .39609E-02** at limit **
   9  Prefactor     22.266        20.440        .84886E-04   -.20893E-04
  10  Prefactor     .10000E-03    37.870        .18142E-02** at limit **
  11  Prefactor     1.5130        5.9593        .34772E-03    .30236E-04
  12  norm          41.590        54.083        .62230E-04   -.60287E-05
  13  Prefactor     3.8217        111.19        .20983E-03    .40094E-05
  14  Prefactor     .10000E-03    2.5389        .12653E-02** at limit **
  15  norm          4.4949        1.3979        .51199E-04   -.12768E-03
  16  Prefactor     .10000E-03    55.914        .18142E-02** at limit **
  17  Prefactor     .10000E-03    4.6029        .16979E-02** at limit **
  18  Prefactor     .83770E-01    26.688        .12533        .76472E-04
  19  Prefactor     .90276        1.7051        .16097E-02    .20725E-03
  20  Prefactor     .10000E-03    23.324        .18142E-02** at limit **
  21  Normalizat    1.2430        .22197        .25662E-03   -.12236E-03
  22  Prefactor     .78616        .15478        .22363E-03   -.12130E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 14.392
  Prefactor  = 0.0001
  norm       = 6.04909
  norm       = 5.76067
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.2661
  Prefactor  = 0.0001
  Prefactor  = 1.513
  norm       = 41.5904
  Prefactor  = 3.82173
  Prefactor  = 0.0001
  norm       = 4.49486
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0837698
  Prefactor  = 0.902764
  Prefactor  = 0.0001
  Normalizat = 1.24297
  Prefactor  = 0.78616
 **********
 **   18 **HESSE 
 **********

 FCN=   6626.073     FROM HESSE     STATUS=OK           336 CALLS     3129 TOTAL
                     EDM=   .94E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.2373        .23767E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          14.392        4.1358        .34206E-05   -1.4949    
   3  Prefactor     .10000E-03    3.5408        .29667E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          6.0491        3.2028        .40708E-05   -1.5216    
   5  norm          5.7607        3.9850        .52412E-05   -1.5228    
   6  Prefactor     .10000E-03    7.7523        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    24.756        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    86.678        .15843E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     22.266        20.438        .33955E-05   -1.4764    
  10  Prefactor     .10000E-03    37.877        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.5130        5.9586        .69544E-04   -1.5462    
  12  norm          41.590        54.083        .12446E-04   -1.4417    
  13  Prefactor     3.8217        111.15        .83931E-05   -1.5317    
  14  Prefactor     .10000E-03    2.5390        .25307E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.4949        1.3979        .20480E-05   -1.5284    
  16  Prefactor     .10000E-03    55.938        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.6037        .33959E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .83770E-01    26.123        .12740       -1.5650    
  19  Prefactor     .90276        1.7031        .64390E-04   -1.5518    
  20  Prefactor     .10000E-03    23.331        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.2430        .22213        .10265E-04   -.85285    
  22  Prefactor     .78616        .15492        .89453E-05   -1.0024    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.38256e-11
Minuit parameter uncertainties:
  1  9.67552e-07
  2  4.13592
  3  6.81087e-06
  4  3.20284
  5  3.98516
  6  2.93194e-06
  7  3.13241e-05
  8  0.000173736
  9  20.4446
  10  5.31031e-06
  11  5.96098
  12  54.1467
  13  41.3047
  14  2.40483e-06
  15  1.39791
  16  0.000137368
  17  5.88468e-06
  18  2.95813
  19  1.70317
  20  2.23677e-07
  21  0.222299
  22  0.15501
Done.

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

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  1.513e+00  5.961e+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

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  7.862e-01  1.550e-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.243e+00  2.223e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/933257/likelihoodResults_326937601_327196801_4FGL_J1501.0+2238_daily_bin338.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) = 6624.805952
delta logL = 1.26739407799

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6624.80040271
delta logL = 1.27294337257

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .21479       1.0000         .10000E-03   10000.    
     2 'Index     '    4.0203       1.0000          .0000       10.000    
     3 'Normalizat'    1.1602       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81412       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.

 FCN=   6624.800     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      240 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .21408        1.9824        .56946E-02    .19249E-02
   2  Index         4.0215        1.8445        .99636E-01    .20192E-03
   3  Normalizat    1.1602        .45459E-01    .59707E-01    .20870E-04
   4  Prefactor     .81415        .32242E-01    .43901E-01    .17039E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.214078
  Index      = 4.02155
  Normalizat = 1.1602
  Prefactor  = 0.814152
 **********
 **   18 **HESSE 
 **********

 FCN=   6624.800     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      275 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .21408        5.0761        .25875E-03   -1.5615    
   2  Index         4.0215        3.5174        .35422E-02   -.19696    
   3  Normalizat    1.1602        .17822        .26406E-03   -.87842    
   4  Prefactor     .81415        .12433        .21989E-03   -.99209    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.89409e-10
Minuit parameter uncertainties:
  1  2.08459
  2  3.92256
  3  0.178314
  4  0.12437
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/933257': 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) = 6624.80040211
delta logL = 1.27294396663

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  2.141e-01  2.085e+00  1.000e-04  1.000e+04 ( 1.000e-13)
240        Index:  4.022e+00  3.923e+00  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.142e-01  1.244e-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.160e+00  1.783e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.71
Ra Dec: 225.257 22.636
Photon Index (Free Index): 4.02 +/- 3.92
Photon Flux (Free Index): 7.93e-08 +/- 5.95e-08
Energy Flux (Free Index): 1.18e-05 +/- 8.87e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/933257/cmap_HighResolution_326937601_327196801_4FGL_J1501.0+2238_daily_bin338.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.79e-03', comment='SUCCESS', energy_flux2='1.18e-05', dlogl='1.27e+00', photon_flux2='7.93e-08', job_status='DONE', time_completed='2021-09-10 17:47:23.766660', photon_index_error2='3.92', photon_index2='4.02', ts='0.08', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', photon_flux_upper_limit='6.39e-08', energy_flux_error2='8.87e-06', EG='1.24', time_epoch_completed='1631321243.77', return_code='0', job_id='933257', GAL2='0.81', EG2='1.16', return_code2='102', photon_flux_error2='5.95e-08', ts2='2.71', photon_index='2.00' WHERE bin_id='338' AND source_name='4FGL J1501.0+2238' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 17:47:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 933257: <4FGL_J1501.0+2238_daily_bin338> in cluster <slac> Done

Job <4FGL_J1501.0+2238_daily_bin338> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep 10 17:36:06 2021
Job was executed on host(s) <bullet0084>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 17:36:07 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:07 2021
Terminated at Fri Sep 10 17:47:24 2021
Results reported at Fri Sep 10 17:47:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1501.0+2238_daily_bin338 225.257 22.6364 326937601 327196801 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 :                                   658.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             336.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   677 sec.
    Turnaround time :                            678 sec.

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

