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


Performing analysis on: 4FGL_J1505.0+0326_daily_bin786
RA = 226.273, Dec = 3.4472
tmin = 443059201, tmax = 443318401
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='14221', job_status='RUN', time_executed='2021-09-10 22:09:43.833955', time_epoch_executed='1631336983.83' WHERE source_name='4FGL J1505.0+0326' and cadence='daily' and bin_id='786'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/14221

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/14221/ft1_4FGL_J1505.0+0326_daily_bin786.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/14221/ft2_4FGL_J1505.0+0326_daily_bin786.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/14221/ft1_4FGL_J1505.0+0326_daily_bin786.fits outfile=/scratch/kocevski/14221/ft1_filteredMKT_4FGL_J1505.0+0326_daily_bin786.fits ra=226.273 dec=3.4472 rad=12.0 tmin=443059201.0 tmax=443318401.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.80
user 3.59
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/14221/ft2_4FGL_J1505.0+0326_daily_bin786.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/14221/ft2_4FGL_J1505.0+0326_daily_bin786.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/14221/ft1_filteredMKT_4FGL_J1505.0+0326_daily_bin786.fits evtable="EVENTS" outfile="/scratch/kocevski/14221/ft1_filtered_4FGL_J1505.0+0326_daily_bin786.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.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/14221/ft1_filtered_4FGL_J1505.0+0326_daily_bin786.fits" evtable="EVENTS" scfile=/scratch/kocevski/14221/ft2_4FGL_J1505.0+0326_daily_bin786.fits sctable="SC_DATA" outfile=/scratch/kocevski/14221/ltcube_443059201_443318401_4FGL_J1505.0+0326_daily_bin786.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/14221/ft2_4FGL_J1505.0+0326_daily_bin786.fits
.....................!
real 11.78
user 11.42
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/14221/ft1_filtered_4FGL_J1505.0+0326_daily_bin786.fits evtable="EVENTS" scfile=/scratch/kocevski/14221/ft2_4FGL_J1505.0+0326_daily_bin786.fits sctable="SC_DATA" expcube=/scratch/kocevski/14221/ltcube_443059201_443318401_4FGL_J1505.0+0326_daily_bin786.fits outfile=/scratch/kocevski/14221/expmap_443059201_443318401_4FGL_J1505.0+0326_daily_bin786.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/14221/ltcube_443059201_443318401_4FGL_J1505.0+0326_daily_bin786.fits
.....................!
real 190.69
user 185.57
sys 4.77

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 154 point sources and 0 extended sources

Setting source of interest to:
4FGL J1505.0+0326 @ 226.273 3.4472

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/14221/ft1_filtered_4FGL_J1505.0+0326_daily_bin786.fits scfile=/scratch/kocevski/14221/ft2_4FGL_J1505.0+0326_daily_bin786.fits outfile=/scratch/kocevski/14221/cmap_443059201_443318401_4FGL_J1505.0+0326_daily_bin786.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=226.273 yref=3.4472 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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/14221/ft1_filtered_4FGL_J1505.0+0326_daily_bin786.fits scfile=/scratch/kocevski/14221/ft2_4FGL_J1505.0+0326_daily_bin786.fits outfile=/scratch/kocevski/14221/cmap_HighResolution_443059201_443318401_4FGL_J1505.0+0326_daily_bin786.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=226.273 yref=3.4472 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/14221/ft1_filtered_4FGL_J1505.0+0326_daily_bin786.fits evtable="EVENTS" scfile=/scratch/kocevski/14221/ft2_4FGL_J1505.0+0326_daily_bin786.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/14221/Model_4FGL_J1505.0+0326_daily_bin786.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/14221/ft1_filtered_4FGL_J1505.0+0326_daily_bin786.fits.....................!
real 67.78
user 66.15
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/14221/ft1_filtered_4FGL_J1505.0+0326_daily_bin786.fits', '/scratch/kocevski/14221/ft2_4FGL_J1505.0+0326_daily_bin786.fits', expMap='/scratch/kocevski/14221/expmap_443059201_443318401_4FGL_J1505.0+0326_daily_bin786.fits', expCube='/scratch/kocevski/14221/ltcube_443059201_443318401_4FGL_J1505.0+0326_daily_bin786.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/14221/Model_4FGL_J1505.0+0326_daily_bin786.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1505.0+0326'

4FGL J1505.0+0326
   Spectrum: LogParabola
225         norm:  1.811e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
226        alpha:  2.490e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
227         beta:  9.910e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
228           Eb:  4.151e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/14221/ft1_filtered_4FGL_J1505.0+0326_daily_bin786.fits
Spacecraft file(s): /scratch/kocevski/14221/ft2_4FGL_J1505.0+0326_daily_bin786.fits
Exposure map: /scratch/kocevski/14221/expmap_443059201_443318401_4FGL_J1505.0+0326_daily_bin786.fits
Exposure cube: /scratch/kocevski/14221/ltcube_443059201_443318401_4FGL_J1505.0+0326_daily_bin786.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/14221/Model_4FGL_J1505.0+0326_daily_bin786.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) = 8572.02719784

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.758       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.9170       1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .67749       1.0000         .10000E-03   10000.    
     7 'Prefactor '    37.629       1.0000         .10000E-03   10000.    
     8 'norm      '    .66327       1.0000         .10000E-03   10000.    
     9 'norm      '    .13046E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .18935E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.0056       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.7452       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.2120       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.6107       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2888       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .89510       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5080E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8572.025     FROM MIGRAD    STATUS=CONVERGED    407 CALLS     1940 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.761        25.734        .50592E-06    .83551E-04
   2  norm          .10000E-03    8.9241       -.92482E-06** at limit **
   3  Prefactor     .10000E-03    11.615       -.66269E-06** at limit **
   4  Prefactor     8.9061        24.119       -.14229E-05   -.11656E-03
   5  norm          .10000E-03    14.027        .15030E-06** at limit **
   6  Prefactor     .73355        12.490        .29673E-06   -.13363E-04
   7  Prefactor     37.627        21.986       -.30182E-06   -.13631E-03
   8  norm          .66323        .21611        .73792E-08   -.43157E-03
   9  norm          .10000E-03    1.0130        .23960E-07** at limit **
  10  norm          .10000E-03    2.6995        .87306E-08** at limit **
  11  norm          .10000E-03    2.1773        .97146E-07** at limit **
  12  norm          3.0049        2.9720        .53853E-07   -.90837E-04
  13  Prefactor     7.7443        22.559        .48649E-06    .24688E-04
  14  Prefactor     1.2116        4.2084        .19458E-05   -.31877E-03
  15  Prefactor     .10000E-03    9.0697        .12912E-05** at limit **
  16  Prefactor     .10000E-03    1.3608       -.43440E-07** at limit **
  17  norm          3.6107        3.5227        .57118E-08   -.19530E-03
  18  Normalizat    1.2885        .21302       -.23576E-06   -.10695E-03
  19  Prefactor     .89527        .10049       -.27011E-06   -.13679E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.7607
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.90606
  norm       = 0.0001
  Prefactor  = 0.733554
  Prefactor  = 37.627
  norm       = 0.663235
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.0049
  Prefactor  = 7.7443
  Prefactor  = 1.21165
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 3.61071
  Normalizat = 1.28845
  Prefactor  = 0.895269
 **********
 **   18 **HESSE 
 **********

 FCN=   8572.025     FROM HESSE     STATUS=OK           270 CALLS     2210 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.761        25.946        .72246E-04   -1.4598    
   2  norm          .10000E-03    9.1847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    11.740        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.9061        24.846        .13422E-03   -1.5111    
   5  norm          .10000E-03    14.146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .73355        194.71        .60223E-02   -1.5537    
   7  Prefactor     37.627        22.167        .65337E-04   -1.4480    
   8  norm          .66323        .21536        .23000E-04   -1.5545    
   9  norm          .10000E-03    2.8010        .17930E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    2.7068        .14856E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    4.6722        .26467E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.0049        2.9566        .15332E-03   -1.5361    
  13  Prefactor     7.7443        22.587        .14409E-03   -1.5151    
  14  Prefactor     1.2116        4.4458        .34645E-03   -1.5488    
  15  Prefactor     .10000E-03    9.5621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.3704        .10548E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.6107        3.5260        .16708E-03   -1.5328    
  18  Normalizat    1.2885        .25406        .32642E-03   -.83912    
  19  Prefactor     .89527        .11909        .18795E-03   -.96307    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.74531e-08
Minuit parameter uncertainties:
  1  25.9551
  2  0.000124419
  3  9.86996e-05
  4  24.8752
  5  8.3484e-05
  6  23.9797
  7  22.1719
  8  0.215363
  9  6.16904e-07
  10  5.17153e-07
  11  3.13666e-06
  12  2.95675
  13  22.6116
  14  4.447
  15  0.000173994
  16  2.51005e-06
  17  3.52616
  18  0.254305
  19  0.119123
Done.

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

Extracting fit parameters...

4FGL J1505.0+0326
   Spectrum: LogParabola
225         norm:  1.000e-04  6.169e-07  1.000e-04  1.000e+04 ( 1.000e-11)
226        alpha:  2.490e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
227         beta:  9.910e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
228           Eb:  4.151e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
505    Prefactor:  8.953e-01  1.191e-01  0.000e+00  1.000e+01 ( 1.000e+00)
506        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
507        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
504   Normalization:  1.288e+00  2.543e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 226.273 3.447
Photon Flux Upper Limit: 7.97e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.15e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/14221/likelihoodResults_443059201_443318401_4FGL_J1505.0+0326_daily_bin786.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) = 8572.02672438
delta logL = -0.00170524615532

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8572.02501964
delta logL = -5.1112510846e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4764       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2883       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89538       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5080E+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=   8572.025     FROM MIGRAD    STATUS=FAILED        97 CALLS      257 TOTAL
                     EDM=   .32E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10047E-03    356.74        .17963E-02** at limit **
   2  alpha         2.3936        2.9103        .16462        .55096E-05
   3  Normalizat    1.2885        .72543E-01    .32642E-03   -.63387E-04
   4  Prefactor     .89527        .35746E-01    .18795E-03   -.79603E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8572.025     FROM SIMPLEX   STATUS=UNCHANGED    154 CALLS      411 TOTAL
                     EDM=   .72E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10047E-03    356.74        .25149E-03** at limit **
   2  alpha         2.3936        2.9103        .27798E-04    .55096E-05
   3  Normalizat    1.2885        .72543E-01    .71681E-06   -.63387E-04
   4  Prefactor     .89527        .35746E-01    .11147E-06   -.79603E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8572.025     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      443 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.9306        .35926E-03** at limit **
   2  alpha         2.3666        2.6382        .65846E-02   -.26934E-07
   3  Normalizat    1.2885        .23624        .13057E-04    .13304E-03
   4  Prefactor     .89527        .11655        .75179E-05    .25224E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.3666
  Normalizat = 1.28845
  Prefactor  = 0.895269
 **********
 **   18 **HESSE 
 **********

 FCN=   8572.025     FROM HESSE     STATUS=OK            23 CALLS      466 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.9304        .71852E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3666        2.6606        .13169E-02   -.53385E-01
   3  Normalizat    1.2885        .23626        .26114E-05   -.83912    
   4  Prefactor     .89527        .11652        .15036E-05   -.96307    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.98307e-11
Minuit parameter uncertainties:
  1  5.47948e-06
  2  110.122
  3  0.236462
  4  0.116557
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/14221': 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) = 8572.02501853
delta logL = 6.05259629083e-07

Extracting fit parameters...

4FGL J1505.0+0326
   Spectrum: LogParabola
225         norm:  1.000e-04  5.479e-06  1.000e-04  1.000e+04 ( 1.000e-11)
226        alpha:  2.367e+00  1.101e+02  0.000e+00  5.000e+00 ( 1.000e+00)
227         beta:  9.910e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
228           Eb:  4.151e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
505    Prefactor:  8.953e-01  1.166e-01  0.000e+00  1.000e+01 ( 1.000e+00)
506        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
507        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
504   Normalization:  1.288e+00  2.365e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 226.273 3.447

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/14221/cmap_HighResolution_443059201_443318401_4FGL_J1505.0+0326_daily_bin786.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.15e-05', job_status='DONE', photon_flux_upper_limit='7.97e-08', time_completed='2021-09-10 22:20:20.992194', job_id='14221', GAL2='0.90', fit_tolerance='1e-08', EG2='1.29', EG='1.29', time_epoch_completed='1631337620.99', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='6.05e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='786' AND source_name='4FGL J1505.0+0326' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 22:20:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 14221: <4FGL_J1505.0+0326_daily_bin786> in cluster <slac> Done

Job <4FGL_J1505.0+0326_daily_bin786> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Fri Sep 10 22:06:24 2021
Job was executed on host(s) <bullet0223>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 22:06:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 22:06:25 2021
Terminated at Fri Sep 10 22:20:21 2021
Results reported at Fri Sep 10 22:20:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1505.0+0326_daily_bin786 226.273 3.4472 443059201 443318401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1505.0+0326 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   635.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             273.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   836 sec.
    Turnaround time :                            837 sec.

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

