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


Performing analysis on: 4FGL_J1501.0+2238_daily_bin1340
RA = 225.257, Dec = 22.6364
tmin = 586656001, tmax = 586915201
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='937901', job_status='RUN', time_executed='2021-09-10 17:55:16.461162', time_epoch_executed='1631321716.46' WHERE source_name='4FGL J1501.0+2238' and cadence='daily' and bin_id='1340'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/937901

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/937901/ft1_4FGL_J1501.0+2238_daily_bin1340.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/937901/ft2_4FGL_J1501.0+2238_daily_bin1340.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/937901/ft1_4FGL_J1501.0+2238_daily_bin1340.fits outfile=/scratch/kocevski/937901/ft1_filteredMKT_4FGL_J1501.0+2238_daily_bin1340.fits ra=225.257 dec=22.6364 rad=12.0 tmin=586656001.0 tmax=586915201.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.68
user 3.45
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/937901/ft1_filtered_4FGL_J1501.0+2238_daily_bin1340.fits" evtable="EVENTS" scfile=/scratch/kocevski/937901/ft2_4FGL_J1501.0+2238_daily_bin1340.fits sctable="SC_DATA" outfile=/scratch/kocevski/937901/ltcube_586656001_586915201_4FGL_J1501.0+2238_daily_bin1340.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/937901/ft2_4FGL_J1501.0+2238_daily_bin1340.fits
.....................!
real 12.05
user 11.70
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/937901/ft1_filtered_4FGL_J1501.0+2238_daily_bin1340.fits evtable="EVENTS" scfile=/scratch/kocevski/937901/ft2_4FGL_J1501.0+2238_daily_bin1340.fits sctable="SC_DATA" expcube=/scratch/kocevski/937901/ltcube_586656001_586915201_4FGL_J1501.0+2238_daily_bin1340.fits outfile=/scratch/kocevski/937901/expmap_586656001_586915201_4FGL_J1501.0+2238_daily_bin1340.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/937901/ltcube_586656001_586915201_4FGL_J1501.0+2238_daily_bin1340.fits
.....................!
real 189.50
user 185.12
sys 4.02

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/937901/ft1_filtered_4FGL_J1501.0+2238_daily_bin1340.fits scfile=/scratch/kocevski/937901/ft2_4FGL_J1501.0+2238_daily_bin1340.fits outfile=/scratch/kocevski/937901/cmap_586656001_586915201_4FGL_J1501.0+2238_daily_bin1340.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.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10534E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    6.1584       1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.097       1.0000         .10000E-03   10000.    
     4 'norm      '    4.1251       1.0000         .10000E-03   10000.    
     5 'norm      '    .98847       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.8616       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.6909       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.8114       1.0000         .10000E-03   10000.    
    12 'norm      '    55.022       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .16624E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.2887       1.0000         .10000E-03   10000.    
    15 'norm      '    2.9563       1.0000         .10000E-03   10000.    
    16 'Prefactor '    131.34       1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.114       1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.308       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .63340       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .13366E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.4928       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .82946       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=   7678.344     FROM MIGRAD    STATUS=CONVERGED    502 CALLS     2423 TOTAL
                     EDM=   .51E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.0810        .13278E-07** at limit **
   2  norm          6.1582        3.1626       -.22469E-07   -.46178E-04
   3  Prefactor     17.095        10.203        .14361E-07   -.78155E-05
   4  norm          4.1254        3.2840        .60781E-07   -.50745E-04
   5  norm          .98820        3.5889        .16626E-05   -.13120E-03
   6  Prefactor     2.5281        190.70        .13635E-05   -.71895E-06
   7  Prefactor     .10000E-03    23.670       -.22212E-06** at limit **
   8  Prefactor     .10000E-03    4.2249       -.35128E-07** at limit **
   9  Prefactor     5.6801        39.322       -.12109E-05   -.23978E-04
  10  Prefactor     .10000E-03    11.675       -.50388E-07** at limit **
  11  Prefactor     2.8108        6.3579        .28824E-06   -.47580E-04
  12  norm          55.025        53.852        .18434E-06    .42620E-05
  13  Prefactor     .10000E-03    116.89       -.62562E-07** at limit **
  14  Prefactor     4.2874        6.4185       -.19835E-06   -.10379E-03
  15  norm          2.9555        2.0771        .20484E-06   -.16988E-03
  16  Prefactor     131.31        44.323       -.11177E-05   -.16207E-03
  17  Prefactor     10.114        16.043       -.11027E-05   -.93690E-04
  18  Prefactor     13.309        22.472       -.19461E-06   -.20840E-04
  19  Prefactor     .63416        1.7237        .43487E-06   -.16127E-03
  20  Prefactor     .10000E-03    69.050       -.39231E-07** at limit **
  21  Normalizat    1.4936        .21849        .11658E-06   -.88511E-04
  22  Prefactor     .82898        .13917       -.36177E-06   -.38112E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 6.15823
  Prefactor  = 17.0949
  norm       = 4.12539
  norm       = 0.988204
  Prefactor  = 2.52807
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.68013
  Prefactor  = 0.0001
  Prefactor  = 2.81082
  norm       = 55.0252
  Prefactor  = 0.0001
  Prefactor  = 4.28745
  norm       = 2.9555
  Prefactor  = 131.311
  Prefactor  = 10.1136
  Prefactor  = 13.3087
  Prefactor  = 0.634157
  Prefactor  = 0.0001
  Normalizat = 1.49357
  Prefactor  = 0.828982
 **********
 **   18 **HESSE 
 **********

 FCN=   7678.344     FROM HESSE     STATUS=OK           352 CALLS     2775 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.1081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.1582        3.1629        .10773E-03   -1.5212    
   3  Prefactor     17.095        10.234        .96864E-04   -1.4881    
   4  norm          4.1254        3.2779        .13464E-03   -1.5302    
   5  norm          .98820        3.6816        .31434E-03   -1.5509    
   6  Prefactor     2.5281        195.74        .24032E-03   -1.5390    
   7  Prefactor     .10000E-03    23.710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.2267        .17588E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.6801        39.996        .16838E-03   -1.5231    
  10  Prefactor     .10000E-03    11.676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.8108        6.3506        .24260E-03   -1.5373    
  12  norm          55.025        53.905        .54077E-04   -1.4223    
  13  Prefactor     .10000E-03    117.82        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.2874        6.4540        .19454E-03   -1.5294    
  15  norm          2.9555        2.1055        .75422E-04   -1.5364    
  16  Prefactor     131.31        45.962        .17567E-03   -1.3411    
  17  Prefactor     10.114        16.379        .12599E-03   -1.5072    
  18  Prefactor     13.309        22.457        .10980E-03   -1.4978    
  19  Prefactor     .63416        1.8286        .18123E-02   -1.5549    
  20  Prefactor     .10000E-03    69.918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.4936        .25841        .28502E-03   -.77959    
  22  Prefactor     .82898        .16376        .24788E-03   -.98669    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41415e-08
Minuit parameter uncertainties:
  1  8.30432e-07
  2  3.16303
  3  10.2352
  4  3.27799
  5  3.68245
  6  44.641
  7  3.23335e-05
  8  2.45895e-06
  9  30.1737
  10  5.80484e-06
  11  6.35214
  12  53.9529
  13  0.000126041
  14  6.45509
  15  2.10555
  16  45.9743
  17  16.386
  18  22.4709
  19  1.82878
  20  6.68595e-05
  21  0.258636
  22  0.163856
Done.

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

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  2.811e+00  6.352e+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:  8.290e-01  1.639e-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.494e+00  2.586e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/937901/likelihoodResults_586656001_586915201_4FGL_J1501.0+2238_daily_bin1340.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) = 7678.34082937
delta logL = 0.00327237363581

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7678.34049122
delta logL = 0.00361052172502

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6612       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1041       1.0000          .0000       10.000    
     3 'Normalizat'    1.4923       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82924       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=   7678.340     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      236 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6612        6.6732        .24986E-03    .23479E-04
   2  Index         2.1058        1.2784        .14350E-01    .32014E-04
   3  Normalizat    1.4923        .23605        .28512E-03   -.71732E-04
   4  Prefactor     .82922        .15947        .24785E-03   -.12233E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.66118
  Index      = 2.10579
  Normalizat = 1.49235
  Prefactor  = 0.829223
 **********
 **   18 **HESSE 
 **********

 FCN=   7678.340     FROM HESSE     STATUS=OK            25 CALLS      261 TOTAL
                     EDM=   .75E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6612        6.3787        .99942E-05   -1.5382    
   2  Index         2.1058        1.2242        .57401E-03   -.61731    
   3  Normalizat    1.4923        .23611        .11405E-04   -.77994    
   4  Prefactor     .82922        .15957        .99139E-05   -.98660    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.45635e-11
Minuit parameter uncertainties:
  1  6.3803
  2  1.24333
  3  0.236282
  4  0.159655
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/937901': 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): 0
logL (Free Index) = 7678.3404901
delta logL = 0.00361164017704

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  2.661e+00  6.380e+00  1.000e-04  1.000e+04 ( 1.000e-13)
240        Index:  2.106e+00  1.243e+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.292e-01  1.597e-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.492e+00  2.363e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.27
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/937901/cmap_HighResolution_586656001_586915201_4FGL_J1501.0+2238_daily_bin1340.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.49e-03', job_status='DONE', photon_flux_upper_limit='7.32e-08', time_completed='2021-09-10 18:06:29.243634', job_id='937901', GAL2='0.83', fit_tolerance='1e-08', EG2='1.49', EG='1.49', time_epoch_completed='1631322389.24', return_code2='0', ts='0.27', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='3.61e-03', ts2='0.28', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1340' AND source_name='4FGL J1501.0+2238' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 18:06:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 937901: <4FGL_J1501.0+2238_daily_bin1340> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1501.0+2238_daily_bin1340 225.257 22.6364 586656001 586915201 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 :                                   655.02 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             231.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   902 sec.
    Turnaround time :                            904 sec.

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

