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


Performing analysis on: 4FGL_J1501.0+2238_daily_bin1177
RA = 225.257, Dec = 22.6364
tmin = 544406401, tmax = 544665601
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='937662', job_status='RUN', time_executed='2021-09-10 17:51:20.612715', time_epoch_executed='1631321480.61' WHERE source_name='4FGL J1501.0+2238' and cadence='daily' and bin_id='1177'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/937662

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

Retrieving the FT1 file...

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

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

Retrieving 36 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/937662/ft1_4FGL_J1501.0+2238_daily_bin1177.fits


Retrieving the FT1 file...

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

Retrieving 36 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/937662/ft2_4FGL_J1501.0+2238_daily_bin1177.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/937662/ft1_4FGL_J1501.0+2238_daily_bin1177.fits outfile=/scratch/kocevski/937662/ft1_filteredMKT_4FGL_J1501.0+2238_daily_bin1177.fits ra=225.257 dec=22.6364 rad=12.0 tmin=544406401.0 tmax=544665601.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 7.64
user 7.37
sys 0.25

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/937662/ft1_filtered_4FGL_J1501.0+2238_daily_bin1177.fits evtable="EVENTS" scfile=/scratch/kocevski/937662/ft2_4FGL_J1501.0+2238_daily_bin1177.fits sctable="SC_DATA" expcube=/scratch/kocevski/937662/ltcube_544406401_544665601_4FGL_J1501.0+2238_daily_bin1177.fits outfile=/scratch/kocevski/937662/expmap_544406401_544665601_4FGL_J1501.0+2238_daily_bin1177.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/937662/ltcube_544406401_544665601_4FGL_J1501.0+2238_daily_bin1177.fits
.....................!
real 193.03
user 187.53
sys 5.10

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/937662/ft1_filtered_4FGL_J1501.0+2238_daily_bin1177.fits scfile=/scratch/kocevski/937662/ft2_4FGL_J1501.0+2238_daily_bin1177.fits outfile=/scratch/kocevski/937662/cmap_544406401_544665601_4FGL_J1501.0+2238_daily_bin1177.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.53
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/937662/ft1_filtered_4FGL_J1501.0+2238_daily_bin1177.fits scfile=/scratch/kocevski/937662/ft2_4FGL_J1501.0+2238_daily_bin1177.fits outfile=/scratch/kocevski/937662/cmap_HighResolution_544406401_544665601_4FGL_J1501.0+2238_daily_bin1177.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.54
user 0.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    10.283       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.2191       1.0000         .10000E-03   10000.    
     5 'norm      '    10.670       1.0000         .10000E-03   10000.    
     6 'Prefactor '    90.879       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .57483       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.6279       1.0000         .10000E-03   10000.    
    15 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .13614E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12641E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.7017       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2974.866     FROM MIGRAD    STATUS=CONVERGED     88 CALLS     2033 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    15.500        .29076E-05** at limit **
   2  norm          10.282        6.0840       -.54258E-07   -.26836E-02
   3  Prefactor     .10048E-03    5.8164        .18929E-06** at limit **
   4  norm          3.2201        4.2164       -.10351E-06    .59766E-04
   5  norm          10.668        1.0664        .27633E-07   -.34610E-05
   6  Prefactor     90.868        2.8406        .18268E-07    .10240E-01
   7  Prefactor     .10000E-03    9.8585       -.17878E-06** at limit **
   8  Prefactor     .46000        54.464        .59954E-05    .13716E-02
   9  Prefactor     .10004E-03    5.4040        .92492E-06** at limit **
  10  Prefactor     .10017E-03    6.2211        .10830E-05** at limit **
  11  Prefactor     .10000E-03    4.4317       -.58940E-07** at limit **
  12  norm          .10083E-03    13.273        .15833E-05** at limit **
  13  Prefactor     .10100E-03    10.902       -.47118E-06** at limit **
  14  Prefactor     7.5851        3.8377        .62618E-06    .80506E-03
  15  norm          .10000E-03    1.8874        .12468E-08** at limit **
  16  Prefactor     .10004E-03    48.137        .80641E-05** at limit **
  17  Prefactor     .10019E-03    6.2897        .10939E-05** at limit **
  18  Prefactor     .10073E-03    11.777        .12529E-05** at limit **
  19  Prefactor     .10000E-03    1.4462       -.10460E-05** at limit **
  20  Prefactor     .10584E-03    32.937        .77357E-05** at limit **
  21  Normalizat    .10000E-01    1.0546       -.10564E-05** at limit **
  22  Prefactor     1.7020        .12293        .51322E-06    .19512E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100006
  norm       = 10.2817
  Prefactor  = 0.00010048
  norm       = 3.22014
  norm       = 10.6684
  Prefactor  = 90.8681
  Prefactor  = 0.000100003
  Prefactor  = 0.459996
  Prefactor  = 0.000100035
  Prefactor  = 0.000100174
  Prefactor  = 0.0001
  norm       = 0.00010083
  Prefactor  = 0.000101
  Prefactor  = 7.58506
  norm       = 0.0001
  Prefactor  = 0.000100044
  Prefactor  = 0.000100188
  Prefactor  = 0.00010073
  Prefactor  = 0.0001
  Prefactor  = 0.000105842
  Normalizat = 0.01
  Prefactor  = 1.70203
 **********
 **   18 **HESSE 
 **********

 FCN=   2974.866     FROM HESSE     STATUS=OK           380 CALLS     2413 TOTAL
                     EDM=   .36E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    15.369        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          10.282        6.1262        .31239E-02   -1.5067    
   3  Prefactor     .10048E-03    21.033        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.2201        4.2370        .56448E-02   -1.5349    
   5  norm          10.668        10.592        .30664E-02   -1.5055    
   6  Prefactor     90.868        168.02        .10538E-02   -1.3799    
   7  Prefactor     .10000E-03    29.114        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .46000        17.371        .11573       -1.5572    
   9  Prefactor     .10004E-03    19.760        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10017E-03    19.413        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.4238        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10083E-03    34.860        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10100E-03    24.097        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.5851        20.748        .36300E-02   -1.5157    
  15  norm          .10000E-03    1.8528        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10004E-03    89.361        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10019E-03    19.243        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10073E-03    33.921        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.4430        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10584E-03    61.366        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .10000E-01    .28227        .32231       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.7020        .18768        .27850E-01   -.72028    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.57611e-06
Minuit parameter uncertainties:
  1  0.000605242
  2  6.12662
  3  0.00635472
  4  4.23737
  5  10.594
  6  168.91
  7  0.000606558
  8  5.65467
  9  0.00167386
  10  0.00367559
  11  3.1152e-06
  12  0.010763
  13  0.00982178
  14  20.7681
  15  3.95057e-07
  16  0.00396298
  17  0.00380779
  18  0.00995759
  19  3.47428e-05
  20  0.0379075
  21  6.19957e-07
  22  0.187757
Done.

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

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  1.000e-04  3.115e-06  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.702e+00  1.878e-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.000e-02  6.200e-07  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/937662/likelihoodResults_544406401_544665601_4FGL_J1501.0+2238_daily_bin1177.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) = 2974.86697225
delta logL = -0.00102668900126

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2974.86594912
delta logL = -3.56057307727e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9822       1.0000          .0000       10.000    
     3 'Normalizat'    .10002E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.7018       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=   2974.866     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      247 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10144E-03    70.729        .11386E-02** at limit **
   2  Index         1.9219        8.9267        .50000        .30521E-04
   3  Normalizat    .10000E-01    .33422E-01    .11144E-01** at limit **
   4  Prefactor     1.7020        .20879E-01    .16815E-03   -.52399E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101441
  Index      = 1.92194
  Normalizat = 0.01
  Prefactor  = 1.70202
 **********
 **   18 **HESSE 
 **********

 FCN=   2974.866     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      276 TOTAL
                     EDM=   .81E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10144E-03    277.39        .22771E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9219        5.5597        .50000       -.66316    
   3  Normalizat    .10000E-01    .14634        .22288E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.7020        .43529E-01    .67258E-05   -.72028    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.06057e-08
Minuit parameter uncertainties:
  1  0.0401704
  2  575.257
  3  2.99481e-07
  4  0.0435299
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/937662': 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) = 2974.86594503
delta logL = 5.25064479007e-07

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  1.014e-04  4.017e-02  1.000e-04  1.000e+04 ( 1.000e-13)
240        Index:  1.922e+00  5.753e+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.702e+00  4.353e-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.000e-02  2.995e-07  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/937662/cmap_HighResolution_544406401_544665601_4FGL_J1501.0+2238_daily_bin1177.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.68e-03', job_status='DONE', photon_flux_upper_limit='7.57e-08', time_completed='2021-09-10 17:59:54.369571', job_id='937662', GAL2='1.70', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1631321994.37', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.70', dlogl='5.25e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1177' AND source_name='4FGL J1501.0+2238' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 17:59:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 937662: <4FGL_J1501.0+2238_daily_bin1177> in cluster <slac> Done

Job <4FGL_J1501.0+2238_daily_bin1177> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Sep 10 17:51:07 2021
Job was executed on host(s) <bullet0043>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 17:51:09 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:09 2021
Terminated at Fri Sep 10 17:59:56 2021
Results reported at Fri Sep 10 17:59:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1501.0+2238_daily_bin1177 225.257 22.6364 544406401 544665601 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 :                                   451.46 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             246.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   525 sec.
    Turnaround time :                            529 sec.

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

