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


Performing analysis on: 4FGL_J1501.0+2238_daily_bin265
RA = 225.257, Dec = 22.6364
tmin = 308016001, tmax = 308275201
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='932204', job_status='RUN', time_executed='2021-09-10 17:32:00.229559', time_epoch_executed='1631320320.23' WHERE source_name='4FGL J1501.0+2238' and cadence='daily' and bin_id='265'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/932204

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/932204/ft1_4FGL_J1501.0+2238_daily_bin265.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/932204/ft2_4FGL_J1501.0+2238_daily_bin265.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/932204/ft1_4FGL_J1501.0+2238_daily_bin265.fits outfile=/scratch/kocevski/932204/ft1_filteredMKT_4FGL_J1501.0+2238_daily_bin265.fits ra=225.257 dec=22.6364 rad=12.0 tmin=308016001.0 tmax=308275201.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.39
user 3.19
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/932204/ft1_filtered_4FGL_J1501.0+2238_daily_bin265.fits evtable="EVENTS" scfile=/scratch/kocevski/932204/ft2_4FGL_J1501.0+2238_daily_bin265.fits sctable="SC_DATA" expcube=/scratch/kocevski/932204/ltcube_308016001_308275201_4FGL_J1501.0+2238_daily_bin265.fits outfile=/scratch/kocevski/932204/expmap_308016001_308275201_4FGL_J1501.0+2238_daily_bin265.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/932204/ltcube_308016001_308275201_4FGL_J1501.0+2238_daily_bin265.fits
.....................!
real 190.17
user 185.10
sys 4.70

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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/932204/ft1_filtered_4FGL_J1501.0+2238_daily_bin265.fits scfile=/scratch/kocevski/932204/ft2_4FGL_J1501.0+2238_daily_bin265.fits outfile=/scratch/kocevski/932204/cmap_HighResolution_308016001_308275201_4FGL_J1501.0+2238_daily_bin265.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/932204/ft1_filtered_4FGL_J1501.0+2238_daily_bin265.fits evtable="EVENTS" scfile=/scratch/kocevski/932204/ft2_4FGL_J1501.0+2238_daily_bin265.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/932204/Model_4FGL_J1501.0+2238_daily_bin265.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/932204/ft1_filtered_4FGL_J1501.0+2238_daily_bin265.fits.....................!
real 53.48
user 52.17
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    6.8823       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .81787E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .40844       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.7391       1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.322       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .13582E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.178       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    30.073       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    22.398       1.0000         .10000E-03   10000.    
    15 'norm      '    12.471       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .53388E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .94599       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.5694       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3842       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .74832       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6994.703     FROM MIGRAD    STATUS=FAILED       867 CALLS     2800 TOTAL
                     EDM=   .61E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.0423        .18142E-02** at limit **
   2  norm          6.8824        2.8716        .88763E-04    .34197E-03
   3  Prefactor     .10001E-03    12.473        .29787E-02** at limit **
   4  norm          .10000E-03    .59622        .62961E-03** at limit **
   5  norm          .41068        5.0063        .25235E-02    .33695E-03
   6  Prefactor     6.7539        45.407        .15457E-03   -.29862E-04
   7  Prefactor     16.323        17.905        .99137E-04   -.84517E-04
   8  Prefactor     .10000E-03    6.2773        .18142E-02** at limit **
   9  Prefactor     .10036E-03    213.15        .69520E-02** at limit **
  10  Prefactor     15.191        47.206        .10281E-03   -.18357E-04
  11  Prefactor     .10000E-03    2.0512        .11692E-02** at limit **
  12  norm          30.047        45.542        .73061E-04   -.34233E-05
  13  Prefactor     .10000E-03    34.035        .18142E-02** at limit **
  14  Prefactor     22.400        10.822        .84635E-04   -.15233E-03
  15  norm          12.470        2.3456        .46170E-04   -.11435E-02
  16  Prefactor     .10161E-03    23.227        .11644    ** at limit **
  17  Prefactor     .95296        28.611        .44282E-02    .21773E-02
  18  Prefactor     6.5669        23.673        .15657E-03   -.72611E-04
  19  Prefactor     .10000E-03    .63124        .64592E-03** at limit **
  20  Prefactor     .10000E-03    9.1106        .18142E-02** at limit **
  21  Normalizat    1.3839        .23722        .25876E-03    .12976E-03
  22  Prefactor     .74853        .15922        .23657E-03   -.47625E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6994.703     FROM SIMPLEX   STATUS=UNCHANGED   1143 CALLS     3943 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.0423        .20672E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.8824        2.8716        .99630E-06   -1.5183    
   3  Prefactor     .10001E-03    12.473        .48298E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .59622        .10693E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .41068        5.0063        .10240E-05   -1.5580    
   6  Prefactor     6.7539        45.407        .98346E-06   -1.5188    
   7  Prefactor     16.323        17.905        .97888E-06   -1.4900    
   8  Prefactor     .10000E-03    6.2773        .30169E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10036E-03    213.15        .56386E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     15.191        47.206        .99696E-06   -1.4928    
  11  Prefactor     .10000E-03    2.0512        .26472E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          30.047        45.542        .95870E-06   -1.4611    
  13  Prefactor     .10000E-03    34.035        .47739E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     22.400        10.822        .97097E-06   -1.4761    
  15  norm          12.470        2.3456        .98494E-06   -1.5002    
  16  Prefactor     .10161E-03    23.227        .10653E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .95296        28.611        .13240E-05   -1.5513    
  18  Prefactor     6.5669        23.673        .10359E-05   -1.5195    
  19  Prefactor     .10000E-03    .63124        .96423E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    9.1106        .37569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.3839        .23722        .53506E-06   -.81095    
  22  Prefactor     .74853        .15922        .66762E-06   -1.0165    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6994.703     FROM MIGRAD    STATUS=CONVERGED    338 CALLS     4281 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.0457        .36285E-03** at limit **
   2  norm          6.8824        2.8715        .35505E-05   -.14729E-04
   3  Prefactor     .10000E-03    12.676        .59574E-03** at limit **
   4  norm          .10000E-03    .59623        .12592E-03** at limit **
   5  norm          .41065        5.0072        .10094E-03   -.12389E-04
   6  Prefactor     6.7544        45.424        .61826E-05    .25743E-05
   7  Prefactor     16.323        17.898        .39655E-05    .50458E-04
   8  Prefactor     .10000E-03    6.2779        .36285E-03** at limit **
   9  Prefactor     .10000E-03    221.73        .27808E-03** at limit **
  10  Prefactor     15.191        47.056        .41122E-05    .38152E-04
  11  Prefactor     .10000E-03    2.0513        .23383E-03** at limit **
  12  norm          30.047        45.542        .14612E-04    .34233E-05
  13  Prefactor     .10000E-03    34.039        .36285E-03** at limit **
  14  Prefactor     22.400        10.822        .33854E-05    .16791E-04
  15  norm          12.471        2.2941        .92339E-05    .33242E-04
  16  Prefactor     .10137E-03    22.626        .11885    ** at limit **
  17  Prefactor     .95302        27.299        .88564E-03    .85749E-05
  18  Prefactor     6.5669        23.610        .62628E-05    .39936E-05
  19  Prefactor     .10000E-03    .63127        .12918E-03** at limit **
  20  Prefactor     .10000E-03    9.1108        .36285E-03** at limit **
  21  Normalizat    1.3839        .23734        .51752E-04    .17807E-03
  22  Prefactor     .74853        .15929        .47314E-04    .25186E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 6.88242
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.410651
  Prefactor  = 6.75437
  Prefactor  = 16.3232
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 15.1914
  Prefactor  = 0.0001
  norm       = 30.0467
  Prefactor  = 0.0001
  Prefactor  = 22.3996
  norm       = 12.4705
  Prefactor  = 0.000101366
  Prefactor  = 0.953021
  Prefactor  = 6.56694
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.38391
  Prefactor  = 0.748532
 **********
 **   18 **HESSE 
 **********

 FCN=   6994.703     FROM HESSE     STATUS=OK           332 CALLS     4613 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.0458        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.8824        2.8722        .71010E-06   -1.5183    
   3  Prefactor     .10000E-03    12.684        .11915E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .59623        .25185E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .41065        5.0066        .40377E-05   -1.5580    
   6  Prefactor     6.7544        46.040        .12365E-05   -1.5188    
   7  Prefactor     16.323        17.923        .79309E-06   -1.4900    
   8  Prefactor     .10000E-03    6.2780        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    221.73        .55616E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     15.191        47.742        .82244E-06   -1.4928    
  11  Prefactor     .10000E-03    2.0513        .46766E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          30.047        45.542        .29224E-05   -1.4611    
  13  Prefactor     .10000E-03    34.039        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     22.400        10.827        .67708E-06   -1.4761    
  15  norm          12.471        2.2823        .18468E-05   -1.5002    
  16  Prefactor     .10137E-03    22.756        .11832       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .95302        26.962        .35426E-04   -1.5513    
  18  Prefactor     6.5669        23.521        .12526E-05   -1.5195    
  19  Prefactor     .10000E-03    .63127        .25837E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    9.1108        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.3839        .23753        .10350E-04   -.81095    
  22  Prefactor     .74853        .15934        .94629E-05   -1.0165    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.09685e-10
Minuit parameter uncertainties:
  1  2.72407e-06
  2  2.8723
  3  4.18495e-05
  4  5.19428e-07
  5  2.86768
  6  35.3077
  7  17.9291
  8  9.50469e-07
  9  0.000719492
  10  47.8625
  11  6.16239e-07
  12  45.5949
  13  1.6268e-05
  14  10.828
  15  2.28228
  16  0.0111542
  17  10.1427
  18  23.5543
  19  7.77846e-08
  20  1.6066e-06
  21  0.237716
  22  0.159433
Done.

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

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  1.000e-04  6.162e-07  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.485e-01  1.594e-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.384e+00  2.377e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/932204/likelihoodResults_308016001_308275201_4FGL_J1501.0+2238_daily_bin265.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) = 6994.70497983
delta logL = -0.00226478257082

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6994.70271524
delta logL = -1.96711880562e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10294E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9787       1.0000          .0000       10.000    
     3 'Normalizat'    1.3839       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74857       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6994.703     FROM MIGRAD    STATUS=FAILED        86 CALLS      237 TOTAL
                     EDM=   .43E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10173E-03    30.414        .11949E-02** at limit **
   2  Index         1.9130        5.1438        .50000        .74247E-04
   3  Normalizat    1.3839        .18273E-01    .25876E-03    .40859E-04
   4  Prefactor     .74853        .12778E-01    .23657E-03    .81695E-06
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6994.703     FROM SIMPLEX   STATUS=UNCHANGED    116 CALLS      353 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10173E-03    30.414        .27675E-03** at limit **
   2  Index         1.9130        5.1438        .31274E-03    .74247E-04
   3  Normalizat    1.3839        .18273E-01    .37869E-05    .40859E-04
   4  Prefactor     .74853        .12778E-01    .29674E-05    .81695E-06
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6994.703     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      399 TOTAL
                     EDM=   .71E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    33.382        .23898E-02** at limit **
   2  Index         1.5359        6.3809        .50000        .23997E-06
   3  Normalizat    1.3839        .17632E-01    .10350E-04   -.28997E-03
   4  Prefactor     .74853        .12330E-01    .94628E-05   -.30347E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.53589
  Normalizat = 1.38391
  Prefactor  = 0.748531
 **********
 **   18 **HESSE 
 **********

 FCN=   6994.703     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      428 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    151.82        .47796E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5359        5.1004        .50000       -.76540    
   3  Normalizat    1.3839        .39824E-01    .20701E-05   -.81095    
   4  Prefactor     .74853        .27852E-01    .18926E-05   -1.0165    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.23372e-10
Minuit parameter uncertainties:
  1  0.000281997
  2  549.707
  3  0.0398244
  4  0.027853
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/932204': 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) = 6994.7027098
delta logL = 5.24688584846e-06

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  1.000e-04  2.820e-04  1.000e-04  1.000e+04 ( 1.000e-13)
240        Index:  1.536e+00  5.497e+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:  7.485e-01  2.785e-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.384e+00  3.982e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 225.257 22.636

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/932204/cmap_HighResolution_308016001_308275201_4FGL_J1501.0+2238_daily_bin265.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.75e-03', job_status='DONE', photon_flux_upper_limit='3.66e-08', time_completed='2021-09-10 17:45:21.383890', job_id='932204', GAL2='0.75', fit_tolerance='1e-08', EG2='1.38', EG='1.38', time_epoch_completed='1631321121.38', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='5.25e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='265' AND source_name='4FGL J1501.0+2238' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 17:45:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 932204: <4FGL_J1501.0+2238_daily_bin265> in cluster <slac> Done

Job <4FGL_J1501.0+2238_daily_bin265> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep 10 17:31:46 2021
Job was executed on host(s) <bullet0217>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 17:31:48 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:31:48 2021
Terminated at Fri Sep 10 17:45:22 2021
Results reported at Fri Sep 10 17:45:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1501.0+2238_daily_bin265 225.257 22.6364 308016001 308275201 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 :                                   799.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             336.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   813 sec.
    Turnaround time :                            816 sec.

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

