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


Performing analysis on: 4FGL_J1501.0+2238_daily_bin1616
RA = 225.257, Dec = 22.6364
tmin = 658195201, tmax = 658454401
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='377417', job_status='RUN', time_executed='2021-12-08 01:47:07.079754', time_epoch_executed='1638956827.08' WHERE source_name='4FGL J1501.0+2238' and cadence='daily' and bin_id='1616'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/377417

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/377417/ft1_4FGL_J1501.0+2238_daily_bin1616.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/377417/ft2_4FGL_J1501.0+2238_daily_bin1616.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/377417/ft1_4FGL_J1501.0+2238_daily_bin1616.fits outfile=/scratch/kocevski/377417/ft1_filteredMKT_4FGL_J1501.0+2238_daily_bin1616.fits ra=225.257 dec=22.6364 rad=12.0 tmin=658195201.0 tmax=658454401.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 4.66
user 4.40
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/377417/ft1_filtered_4FGL_J1501.0+2238_daily_bin1616.fits evtable="EVENTS" scfile=/scratch/kocevski/377417/ft2_4FGL_J1501.0+2238_daily_bin1616.fits sctable="SC_DATA" expcube=/scratch/kocevski/377417/ltcube_658195201_658454401_4FGL_J1501.0+2238_daily_bin1616.fits outfile=/scratch/kocevski/377417/expmap_658195201_658454401_4FGL_J1501.0+2238_daily_bin1616.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/377417/ltcube_658195201_658454401_4FGL_J1501.0+2238_daily_bin1616.fits
.....................!
real 190.81
user 185.45
sys 4.65

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/377417/ft1_filtered_4FGL_J1501.0+2238_daily_bin1616.fits scfile=/scratch/kocevski/377417/ft2_4FGL_J1501.0+2238_daily_bin1616.fits outfile=/scratch/kocevski/377417/cmap_658195201_658454401_4FGL_J1501.0+2238_daily_bin1616.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/377417/ft1_filtered_4FGL_J1501.0+2238_daily_bin1616.fits scfile=/scratch/kocevski/377417/ft2_4FGL_J1501.0+2238_daily_bin1616.fits outfile=/scratch/kocevski/377417/cmap_HighResolution_658195201_658454401_4FGL_J1501.0+2238_daily_bin1616.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.40
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/377417/ft1_filtered_4FGL_J1501.0+2238_daily_bin1616.fits', '/scratch/kocevski/377417/ft2_4FGL_J1501.0+2238_daily_bin1616.fits', expMap='/scratch/kocevski/377417/expmap_658195201_658454401_4FGL_J1501.0+2238_daily_bin1616.fits', expCube='/scratch/kocevski/377417/ltcube_658195201_658454401_4FGL_J1501.0+2238_daily_bin1616.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/377417/Model_4FGL_J1501.0+2238_daily_bin1616.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/377417/ft1_filtered_4FGL_J1501.0+2238_daily_bin1616.fits
Spacecraft file(s): /scratch/kocevski/377417/ft2_4FGL_J1501.0+2238_daily_bin1616.fits
Exposure map: /scratch/kocevski/377417/expmap_658195201_658454401_4FGL_J1501.0+2238_daily_bin1616.fits
Exposure cube: /scratch/kocevski/377417/ltcube_658195201_658454401_4FGL_J1501.0+2238_daily_bin1616.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/377417/Model_4FGL_J1501.0+2238_daily_bin1616.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 7279.68357242

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.1780       1.0000         .10000E-03   10000.    
     2 'norm      '    2.0109       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .65836       1.0000         .10000E-03   10000.    
     5 'norm      '    5.6809       1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.788       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.3429       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.7915       1.0000         .10000E-03   10000.    
    12 'norm      '    33.214       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.5528       1.0000         .10000E-03   10000.    
    15 'norm      '    .61178       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.2733       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.3730       1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.4848       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .30240E-01   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1592       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .98543       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=   7279.605     FROM MIGRAD    STATUS=CONVERGED    495 CALLS     2127 TOTAL
                     EDM=   .55E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1786        5.1318       -.11715E-06   -.10556E-04
   2  norm          2.0112        2.2053       -.54187E-07   -.12796E-04
   3  Prefactor     .10000E-03    3.2320        .93756E-07** at limit **
   4  norm          .65924        1.5201        .58344E-08    .31705E-04
   5  norm          5.6811        4.4750       -.17659E-06    .18869E-06
   6  Prefactor     18.784        24.562        .49747E-05    .50215E-05
   7  Prefactor     .10000E-03    12.003       -.20217E-06** at limit **
   8  Prefactor     5.3446        16.959       -.87239E-05   -.95479E-05
   9  Prefactor     .10000E-03    16.401        .28668E-05** at limit **
  10  Prefactor     .10000E-03    17.458       -.21251E-05** at limit **
  11  Prefactor     2.7926        8.0199        .17752E-06   -.16951E-03
  12  norm          33.224        35.173       -.22908E-05    .68883E-06
  13  Prefactor     .10000E-03    29.876       -.37846E-06** at limit **
  14  Prefactor     3.5534        7.0732       -.56543E-05   -.13849E-04
  15  norm          .61224        .82523       -.75967E-07   -.71018E-04
  16  Prefactor     6.2680        35.168        .11024E-04    .15562E-04
  17  Prefactor     1.3723        2.0012        .84323E-07   -.57100E-03
  18  Prefactor     9.4837        21.882        .15902E-05    .59648E-05
  19  Prefactor     .10000E-03    .85382        .52145E-07** at limit **
  20  Prefactor     .10015E-03    26.643       -.18217E-05** at limit **
  21  Normalizat    1.1593        .17835       -.92157E-07    .15240E-03
  22  Prefactor     .98528        .12758        .59754E-06    .11511E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.17865
  norm       = 2.01118
  Prefactor  = 0.0001
  norm       = 0.659244
  norm       = 5.68112
  Prefactor  = 18.7838
  Prefactor  = 0.0001
  Prefactor  = 5.3446
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.79262
  norm       = 33.2243
  Prefactor  = 0.0001
  Prefactor  = 3.55338
  norm       = 0.612239
  Prefactor  = 6.26799
  Prefactor  = 1.37227
  Prefactor  = 9.48372
  Prefactor  = 0.0001
  Prefactor  = 0.000100153
  Normalizat = 1.15928
  Prefactor  = 0.985279
 **********
 **   18 **HESSE 
 **********

 FCN=   7279.605     FROM HESSE     STATUS=OK           362 CALLS     2489 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.1786        5.1052        .27897E-03   -1.5413    
   2  norm          2.0112        2.1925        .12809E-03   -1.5424    
   3  Prefactor     .10000E-03    3.2883        .14968E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .65924        1.2064        .15452E-02   -1.5546    
   5  norm          5.6811        4.4729        .15401E-03   -1.5231    
   6  Prefactor     18.784        24.662        .92402E-04   -1.4841    
   7  Prefactor     .10000E-03    12.028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.3446        16.992        .17387E-03   -1.5246    
   9  Prefactor     .10000E-03    16.487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    17.448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.7926        8.2903        .12176E-02   -1.5374    
  12  norm          33.224        35.177        .69530E-04   -1.4555    
  13  Prefactor     .10000E-03    29.928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.5534        7.0680        .21443E-03   -1.5331    
  15  norm          .61224        .77552        .84577E-03   -1.5551    
  16  Prefactor     6.2680        35.155        .16027E-03   -1.5207    
  17  Prefactor     1.3723        8.2905        .18596E-02   -1.5474    
  18  Prefactor     9.4837        22.044        .13013E-03   -1.5092    
  19  Prefactor     .10000E-03    .87097        .76958E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10015E-03    27.782        .12621       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1593        .20972        .26784E-03   -.87871    
  22  Prefactor     .98528        .15038        .20768E-03   -.93222    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.85528e-09
Minuit parameter uncertainties:
  1  5.10619
  2  2.19256
  3  2.45855e-06
  4  1.20644
  5  4.47315
  6  24.6757
  7  3.19394e-05
  8  17.0076
  9  8.60305e-05
  10  3.78409e-05
  11  8.29368
  12  35.1985
  13  1.92016e-05
  14  7.06965
  15  0.775528
  16  29.7149
  17  6.74708
  18  22.0632
  19  8.51496e-07
  20  0.00412325
  21  0.209875
  22  0.150442
Done.

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

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  2.793e+00  8.294e+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:  9.853e-01  1.504e-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.159e+00  2.099e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/377417/likelihoodResults_658195201_658454401_4FGL_J1501.0+2238_daily_bin1616.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7279.42695541
delta logL = 0.177883365286

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7279.41986317
delta logL = 0.184975608731

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .21573       1.0000         .10000E-03   10000.    
     2 'Index     '    3.7299       1.0000          .0000       10.000    
     3 'Normalizat'    1.1242       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0001       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=   7279.420     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      327 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .21396        4.6209        .10049E-01    .17380E-02
   2  Index         3.7331        2.4692        .11287        .12946E-03
   3  Normalizat    1.1244        .30895E-01    .61360E-01   -.81400E-04
   4  Prefactor     .99992        .22412E-01    .46116E-01   -.77522E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.213963
  Index      = 3.73308
  Normalizat = 1.12441
  Prefactor  = 0.999925
 **********
 **   18 **HESSE 
 **********

 FCN=   7279.420     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      360 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .21396        21.833        .55697E-04   -1.5615    
   2  Index         3.7331        6.7216        .69403E-02   -.25618    
   3  Normalizat    1.1244        .16399        .27139E-03   -.88972    
   4  Prefactor     .99992        .11742        .20628E-03   -.92732    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.60359e-09
Minuit parameter uncertainties:
  1  4.3233
  2  8.01385
  3  0.164068
  4  0.117453
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/377417': 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) = 7279.41986171
delta logL = 0.184977068363

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  2.140e-01  4.323e+00  1.000e-04  1.000e+04 ( 1.000e-13)
240        Index:  3.733e+00  8.014e+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:  9.999e-01  1.175e-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.124e+00  1.641e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.13
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/377417/cmap_HighResolution_658195201_658454401_4FGL_J1501.0+2238_daily_bin1616.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.80e-03', job_status='DONE', photon_flux_upper_limit='7.74e-08', time_completed='2021-12-08 01:57:51.035006', job_id='377417', GAL2='1.00', fit_tolerance='1e-08', EG2='1.12', EG='1.16', time_epoch_completed='1638957471.04', return_code2='102', ts='0.13', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='1.85e-01', ts2='0.56', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1616' AND source_name='4FGL J1501.0+2238' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 01:57:51 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0273>
Subject: Job 377417: <4FGL_J1501.0+2238_daily_bin1616> in cluster <slac> Done

Job <4FGL_J1501.0+2238_daily_bin1616> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Dec  8 01:45:20 2021
Job was executed on host(s) <bullet0273>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 01:46:55 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 01:46:55 2021
Terminated at Wed Dec  8 01:57:51 2021
Results reported at Wed Dec  8 01:57:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1501.0+2238_daily_bin1616 225.257 22.6364 658195201 658454401 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 :                                   643.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             330.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   656 sec.
    Turnaround time :                            751 sec.

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

