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


Performing analysis on: 4FGL_J1505.0+0326_daily_bin256
RA = 226.273, Dec = 3.4472
tmin = 305683201, tmax = 305942401
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='10775', job_status='RUN', time_executed='2021-09-10 22:00:11.266385', time_epoch_executed='1631336411.27' WHERE source_name='4FGL J1505.0+0326' and cadence='daily' and bin_id='256'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/10775

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/10775/ft1_4FGL_J1505.0+0326_daily_bin256.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/10775/ft2_4FGL_J1505.0+0326_daily_bin256.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/10775/ft1_4FGL_J1505.0+0326_daily_bin256.fits outfile=/scratch/kocevski/10775/ft1_filteredMKT_4FGL_J1505.0+0326_daily_bin256.fits ra=226.273 dec=3.4472 rad=12.0 tmin=305683201.0 tmax=305942401.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.72
user 4.46
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/10775/ft2_4FGL_J1505.0+0326_daily_bin256.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/10775/ft1_filteredMKT_4FGL_J1505.0+0326_daily_bin256.fits evtable="EVENTS" outfile="/scratch/kocevski/10775/ft1_filtered_4FGL_J1505.0+0326_daily_bin256.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/10775/ft1_filtered_4FGL_J1505.0+0326_daily_bin256.fits" evtable="EVENTS" scfile=/scratch/kocevski/10775/ft2_4FGL_J1505.0+0326_daily_bin256.fits sctable="SC_DATA" outfile=/scratch/kocevski/10775/ltcube_305683201_305942401_4FGL_J1505.0+0326_daily_bin256.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/10775/ft2_4FGL_J1505.0+0326_daily_bin256.fits
.....................!
real 11.59
user 11.22
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/10775/ft1_filtered_4FGL_J1505.0+0326_daily_bin256.fits evtable="EVENTS" scfile=/scratch/kocevski/10775/ft2_4FGL_J1505.0+0326_daily_bin256.fits sctable="SC_DATA" expcube=/scratch/kocevski/10775/ltcube_305683201_305942401_4FGL_J1505.0+0326_daily_bin256.fits outfile=/scratch/kocevski/10775/expmap_305683201_305942401_4FGL_J1505.0+0326_daily_bin256.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/10775/ltcube_305683201_305942401_4FGL_J1505.0+0326_daily_bin256.fits
.....................!
real 190.48
user 185.27
sys 4.85

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/10775/ft1_filtered_4FGL_J1505.0+0326_daily_bin256.fits scfile=/scratch/kocevski/10775/ft2_4FGL_J1505.0+0326_daily_bin256.fits outfile=/scratch/kocevski/10775/cmap_305683201_305942401_4FGL_J1505.0+0326_daily_bin256.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/10775/ft1_filtered_4FGL_J1505.0+0326_daily_bin256.fits scfile=/scratch/kocevski/10775/ft2_4FGL_J1505.0+0326_daily_bin256.fits outfile=/scratch/kocevski/10775/cmap_HighResolution_305683201_305942401_4FGL_J1505.0+0326_daily_bin256.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.39
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/10775/ft1_filtered_4FGL_J1505.0+0326_daily_bin256.fits', '/scratch/kocevski/10775/ft2_4FGL_J1505.0+0326_daily_bin256.fits', expMap='/scratch/kocevski/10775/expmap_305683201_305942401_4FGL_J1505.0+0326_daily_bin256.fits', expCube='/scratch/kocevski/10775/ltcube_305683201_305942401_4FGL_J1505.0+0326_daily_bin256.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/10775/Model_4FGL_J1505.0+0326_daily_bin256.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/10775/ft1_filtered_4FGL_J1505.0+0326_daily_bin256.fits
Spacecraft file(s): /scratch/kocevski/10775/ft2_4FGL_J1505.0+0326_daily_bin256.fits
Exposure map: /scratch/kocevski/10775/expmap_305683201_305942401_4FGL_J1505.0+0326_daily_bin256.fits
Exposure cube: /scratch/kocevski/10775/ltcube_305683201_305942401_4FGL_J1505.0+0326_daily_bin256.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/10775/Model_4FGL_J1505.0+0326_daily_bin256.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) = 10253.5923873

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.9895       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.994       1.0000         .10000E-03   10000.    
     5 'norm      '    2.3853       1.0000         .10000E-03   10000.    
     6 'Prefactor '    42.590       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.4325       1.0000         .10000E-03   10000.    
     9 'norm      '    .28702       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.7915       1.0000         .10000E-03   10000.    
    12 'norm      '    4.9663       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.6122       1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.637       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.6424       1.0000         .10000E-03   10000.    
    17 'norm      '    .14131       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .70042       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1121       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=   10253.46     FROM MIGRAD    STATUS=CONVERGED    376 CALLS     1651 TOTAL
                     EDM=   .81E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.5057        .18013E-07** at limit **
   2  norm          4.9875        10.703        .29236E-06    .21144E-04
   3  Prefactor     .10000E-03    16.065        .13127E-06** at limit **
   4  Prefactor     20.999        23.724       -.28373E-06    .64734E-04
   5  norm          2.3811        11.161        .12335E-05    .85015E-04
   6  Prefactor     42.580        26.327       -.18242E-06   -.18747E-03
   7  Prefactor     .10000E-03    16.140       -.69426E-07** at limit **
   8  norm          1.4325        .24781        .84979E-08   -.67515E-03
   9  norm          .28662        1.0035        .10592E-06   -.12838E-03
  10  norm          .10000E-03    1.3578       -.45176E-08** at limit **
  11  norm          4.7921        3.5495        .21626E-06    .16167E-03
  12  norm          4.9667        3.2015        .17484E-07   -.31762E-04
  13  Prefactor     .10000E-03    9.0780       -.13530E-07** at limit **
  14  Prefactor     1.6124        3.6870        .20365E-05    .60565E-03
  15  Prefactor     10.628        17.352       -.30721E-06   -.23506E-03
  16  Prefactor     9.6418        4.9856        .14096E-07   -.38550E-03
  17  norm          .15179        5.2724        .18390E-05   -.97256E-03
  18  Normalizat    .70067        .20531       -.72131E-06   -.23613E-03
  19  Prefactor     1.1119        .99642E-01   -.34524E-06   -.49686E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 4.98752
  Prefactor  = 0.0001
  Prefactor  = 20.999
  norm       = 2.38109
  Prefactor  = 42.5797
  Prefactor  = 0.0001
  norm       = 1.43251
  norm       = 0.286622
  norm       = 0.0001
  norm       = 4.79214
  norm       = 4.96673
  Prefactor  = 0.0001
  Prefactor  = 1.61244
  Prefactor  = 10.6276
  Prefactor  = 9.64178
  norm       = 0.151788
  Normalizat = 0.700666
  Prefactor  = 1.11193
 **********
 **   18 **HESSE 
 **********

 FCN=   10253.46     FROM HESSE     STATUS=OK           274 CALLS     1925 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.5075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.9875        10.692        .18003E-03   -1.5261    
   3  Prefactor     .10000E-03    16.072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     20.999        23.796        .87416E-04   -1.4791    
   5  norm          2.3811        11.200        .26521E-03   -1.5399    
   6  Prefactor     42.580        26.356        .61428E-04   -1.4402    
   7  Prefactor     .10000E-03    16.238        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.4325        .24825        .19701E-04   -1.5469    
   9  norm          .28662        2.9950        .17328E-02   -1.5601    
  10  norm          .10000E-03    1.3580        .11523E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.7921        3.5508        .15831E-03   -1.5270    
  12  norm          4.9667        3.1958        .13952E-03   -1.5262    
  13  Prefactor     .10000E-03    9.0810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.6124        3.7649        .28198E-03   -1.5454    
  15  Prefactor     10.628        17.382        .12285E-03   -1.5056    
  16  Prefactor     9.6418        4.9491        .12905E-03   -1.5087    
  17  norm          .15179        19.879        .31959E-02   -1.5630    
  18  Normalizat    .70067        .22571        .42742E-03   -1.0387    
  19  Prefactor     1.1119        .11070        .17509E-03   -.89086    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.29268e-08
Minuit parameter uncertainties:
  1  2.0052e-06
  2  10.6964
  3  3.50413e-05
  4  23.8071
  5  10.3314
  6  26.3632
  7  3.316e-06
  8  0.248247
  9  1.85282
  10  1.27712e-07
  11  3.55091
  12  3.19592
  13  5.14065e-06
  14  3.76544
  15  17.3898
  16  4.94928
  17  3.47417
  18  0.226008
  19  0.110722
Done.

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

Extracting fit parameters...

4FGL J1505.0+0326
   Spectrum: LogParabola
225         norm:  2.866e-01  1.853e+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

GAL_V02
   Spectrum: PowerLaw
505    Prefactor:  1.112e+00  1.107e-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:  7.007e-01  2.260e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/10775/likelihoodResults_305683201_305942401_4FGL_J1505.0+0326_daily_bin256.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) = 10252.5648519
delta logL = 0.89167084468

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10252.5580958
delta logL = 0.898426893784

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .47794       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.5554       1.0000          .0000       5.0000    
     3 'Normalizat'    .61386       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1362       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=   10252.56     FROM MIGRAD    STATUS=FAILED       102 CALLS      289 TOTAL
                     EDM=   .52E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .47847        14.957        .55298E-03    .92151E-02
   2  alpha         4.5546        2.7978        .56785E-01   -.11952E-05
   3  Normalizat    .61382        .17564        .45473E-03    .90003E-06
   4  Prefactor     1.1363        .86661E-01    .17339E-03    .26227E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   10252.56     FROM SIMPLEX   STATUS=UNCHANGED     81 CALLS      370 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .47847        14.957        .61733E-04    .92151E-02
   2  alpha         4.5546        2.7978        .46546E-02   -.11952E-05
   3  Normalizat    .61382        .17564        .24222E-03    .90003E-06
   4  Prefactor     1.1363        .86661E-01    .65618E-04    .26227E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10252.56     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      400 TOTAL
                     EDM=   .56E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .47847        1.4337        .11060E-03    .36291E-03
   2  alpha         4.5546        4.4292        .22714E-02    .20020E-07
   3  Normalizat    .61382        .22213        .18189E-04    .75003E-06
   4  Prefactor     1.1363        .11001        .69355E-05    .26227E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.478472
  alpha      = 4.55461
  Normalizat = 0.613823
  Prefactor  = 1.13625
 **********
 **   18 **HESSE 
 **********

 FCN=   10252.56     FROM HESSE     STATUS=OK            25 CALLS      425 TOTAL
                     EDM=   .20E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .47847        1.2129        .22119E-04   -1.5570    
   2  alpha         4.5546        4.1630        .90856E-04    .96464    
   3  Normalizat    .61382        .22170        .36379E-05   -1.0740    
   4  Prefactor     1.1363        .10982        .13871E-05   -.88316    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.95436e-14
Minuit parameter uncertainties:
  1  1.21301
  2  2.13383
  3  0.222019
  4  0.10984
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/10775': 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) = 10252.5580957
delta logL = 0.898427017028

Extracting fit parameters...

4FGL J1505.0+0326
   Spectrum: LogParabola
225         norm:  4.785e-01  1.213e+00  1.000e-04  1.000e+04 ( 1.000e-11)
226        alpha:  4.555e+00  2.134e+00  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:  1.136e+00  1.098e-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:  6.138e-01  2.220e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.02
Ra Dec: 226.273 3.447
Photon Index (Free Index): 4.55 +/- 2.13
Photon Flux (Free Index): 7.72e-08 +/- 6.39e-08
Energy Flux (Free Index): 1.09e-05 +/- 9.39e-06

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/10775/cmap_HighResolution_305683201_305942401_4FGL_J1505.0+0326_daily_bin256.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.59e-05', comment='SUCCESS', energy_flux2='1.09e-05', dlogl='8.98e-01', photon_flux2='7.72e-08', job_status='DONE', time_completed='2021-09-10 22:11:27.319029', photon_index_error2='2.13', photon_index2='4.55', ts='0.03', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='9.60e-08', energy_flux_error2='9.39e-06', EG='0.70', time_epoch_completed='1631337087.32', return_code='0', job_id='10775', GAL2='1.14', EG2='0.61', return_code2='0', photon_flux_error2='6.39e-08', ts2='2.02', photon_index='2.49' WHERE bin_id='256' AND source_name='4FGL J1505.0+0326' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 22:11:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 10775: <4FGL_J1505.0+0326_daily_bin256> in cluster <slac> Done

Job <4FGL_J1505.0+0326_daily_bin256> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 10 21:56:09 2021
Job was executed on host(s) <bullet0066>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 21:56:11 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 21:56:11 2021
Terminated at Fri Sep 10 22:11:28 2021
Results reported at Fri Sep 10 22:11:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1505.0+0326_daily_bin256 226.273 3.4472 305683201 305942401 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 :                                   673.04 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             246.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   916 sec.
    Turnaround time :                            919 sec.

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

