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


Performing analysis on: 4FGL_J1505.0+0326_daily_bin654
RA = 226.273, Dec = 3.4472
tmin = 408844801, tmax = 409104001
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='13965', job_status='RUN', time_executed='2021-09-10 22:10:03.038452', time_epoch_executed='1631337003.04' WHERE source_name='4FGL J1505.0+0326' and cadence='daily' and bin_id='654'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/13965

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/13965/ft1_4FGL_J1505.0+0326_daily_bin654.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/13965/ft2_4FGL_J1505.0+0326_daily_bin654.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/13965/ft1_4FGL_J1505.0+0326_daily_bin654.fits outfile=/scratch/kocevski/13965/ft1_filteredMKT_4FGL_J1505.0+0326_daily_bin654.fits ra=226.273 dec=3.4472 rad=12.0 tmin=408844801.0 tmax=409104001.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.34
user 4.14
sys 0.17

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/13965/ft1_filtered_4FGL_J1505.0+0326_daily_bin654.fits evtable="EVENTS" scfile=/scratch/kocevski/13965/ft2_4FGL_J1505.0+0326_daily_bin654.fits sctable="SC_DATA" expcube=/scratch/kocevski/13965/ltcube_408844801_409104001_4FGL_J1505.0+0326_daily_bin654.fits outfile=/scratch/kocevski/13965/expmap_408844801_409104001_4FGL_J1505.0+0326_daily_bin654.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/13965/ltcube_408844801_409104001_4FGL_J1505.0+0326_daily_bin654.fits
.....................!
real 190.04
user 185.39
sys 4.30

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/13965/ft1_filtered_4FGL_J1505.0+0326_daily_bin654.fits scfile=/scratch/kocevski/13965/ft2_4FGL_J1505.0+0326_daily_bin654.fits outfile=/scratch/kocevski/13965/cmap_408844801_409104001_4FGL_J1505.0+0326_daily_bin654.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/13965/ft1_filtered_4FGL_J1505.0+0326_daily_bin654.fits scfile=/scratch/kocevski/13965/ft2_4FGL_J1505.0+0326_daily_bin654.fits outfile=/scratch/kocevski/13965/cmap_HighResolution_408844801_409104001_4FGL_J1505.0+0326_daily_bin654.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.61
user 0.37
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.399       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.626       1.0000         .10000E-03   10000.    
     4 'Prefactor '    44.236       1.0000         .10000E-03   10000.    
     5 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .45708E-01   1.0000         .10000E-03   10000.    
     9 'norm      '    .35821E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    3.1749       1.0000         .10000E-03   10000.    
    11 'norm      '    7.7524       1.0000         .10000E-03   10000.    
    12 'norm      '    1.2625       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .78441       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.1284       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2698       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0907       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=   7474.112     FROM MIGRAD    STATUS=CONVERGED    395 CALLS     1890 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.402        32.128        .27046E-05    .44373E-04
   2  norm          .10000E-03    7.7758       -.76872E-06** at limit **
   3  Prefactor     18.629        61.763        .41911E-05    .16625E-04
   4  Prefactor     44.231        32.736       -.32946E-05   -.12565E-03
   5  norm          .10000E-03    9.0883        .57256E-06** at limit **
   6  Prefactor     .10000E-03    9.1504        .10458E-05** at limit **
   7  Prefactor     .10000E-03    18.046        .35275E-06** at limit **
   8  norm          .45710E-01    .13073        .16770E-07   -.91260E-03
   9  norm          .10011E-03    1.1545       -.39795E-06** at limit **
  10  norm          3.1749        6.7820       -.10194E-06   -.60939E-04
  11  norm          7.7528        4.6843        .22016E-05    .66573E-03
  12  norm          1.2620        2.4868        .91773E-07   -.62774E-04
  13  Prefactor     .10000E-03    43.222       -.17840E-05** at limit **
  14  Prefactor     .77931        3.0384        .13465E-05   -.81077E-03
  15  Prefactor     .10000E-03    18.392        .27671E-05** at limit **
  16  Prefactor     .10000E-03    3.0016       -.14475E-06** at limit **
  17  norm          3.1278        2.3288        .34792E-06   -.23631E-02
  18  Normalizat    1.2696        .25286       -.35477E-06   -.57535E-04
  19  Prefactor     1.0907        .11940       -.61512E-06   -.73787E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.4017
  norm       = 0.0001
  Prefactor  = 18.6288
  Prefactor  = 44.2314
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0457095
  norm       = 0.000100111
  norm       = 3.17485
  norm       = 7.75282
  norm       = 1.26205
  Prefactor  = 0.0001
  Prefactor  = 0.779314
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.12781
  Normalizat = 1.26964
  Prefactor  = 1.09071
 **********
 **   18 **HESSE 
 **********

 FCN=   7474.112     FROM HESSE     STATUS=OK           272 CALLS     2162 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.402        32.209        .88680E-04   -1.4804    
   2  norm          .10000E-03    7.7804        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     18.629        61.868        .92802E-04   -1.4844    
   4  Prefactor     44.231        32.847        .60279E-04   -1.4377    
   5  norm          .10000E-03    9.1028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.1623        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    18.083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .45710E-01    .12400        .51136E-03   -1.5665    
   9  norm          .10011E-03    16.416        .17412E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.1749        6.7627        .22744E-03   -1.5352    
  11  norm          7.7528        4.6981        .13999E-03   -1.5151    
  12  norm          1.2620        2.4252        .18566E-03   -1.5483    
  13  Prefactor     .10000E-03    43.347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .77931        8.7713        .27204E-02   -1.5531    
  15  Prefactor     .10000E-03    18.444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.0586        .14623E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.1278        5.3246        .11461E-02   -1.5354    
  18  Normalizat    1.2696        .28814        .37051E-03   -.84477    
  19  Prefactor     1.0907        .13885        .19043E-03   -.89764    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.88291e-08
Minuit parameter uncertainties:
  1  32.2363
  2  2.35246e-05
  3  62.0821
  4  32.86
  5  3.83497e-05
  6  3.61694e-05
  7  2.11056e-05
  8  0.123997
  9  0.00270414
  10  6.76435
  11  4.69833
  12  2.42536
  13  9.62547e-05
  14  5.22962
  15  0.000111331
  16  1.96475e-06
  17  5.32542
  18  0.288508
  19  0.138896
Done.

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

Extracting fit parameters...

4FGL J1505.0+0326
   Spectrum: LogParabola
225         norm:  1.001e-04  2.704e-03  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.091e+00  1.389e-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.270e+00  2.885e-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: 1.32e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.56e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/13965/likelihoodResults_408844801_409104001_4FGL_J1505.0+0326_daily_bin654.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) = 7474.11272174
delta logL = -0.000291713602564

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7474.1124306
delta logL = -5.67960341868e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10812E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5362       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2699       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0907       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=   7474.112     FROM MIGRAD    STATUS=FAILED       114 CALLS      284 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .16190E-03    1.1185        .19968E-01** at limit **
   2  alpha         4.3035        3.9836        .16463        .75683E-05
   3  Normalizat    1.2696        .93943E-02    .37051E-03    .18166E-02
   4  Prefactor     1.0907        .45458E-02    .19043E-03    .20878E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7474.112     FROM SIMPLEX   STATUS=PROGRESS      77 CALLS      361 TOTAL
                     EDM=   .61E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .38874E-01    1.1185        .35509E-03    .36662E-01
   2  alpha         3.9531        3.9836        .17825E-01    .75683E-05
   3  Normalizat    1.2687        .93943E-02    .34605E-04    .18166E-02
   4  Prefactor     1.0904        .45458E-02    .19489E-04    .20878E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7474.112     FROM MIGRAD    STATUS=CONVERGED     74 CALLS      435 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .41683E-01    6.4073        .12367E-02   -.19875E-03
   2  alpha         3.9134        2.7578        .65851E-01    .10377E-05
   3  Normalizat    1.2659        .29048        .74102E-04    .23571E-03
   4  Prefactor     1.0916        .13681        .38085E-04    .19063E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0416832
  alpha      = 3.91343
  Normalizat = 1.2659
  Prefactor  = 1.09161
 **********
 **   18 **HESSE 
 **********

 FCN=   7474.112     FROM HESSE     STATUS=OK            27 CALLS      462 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .41683E-01    7.9162        .49467E-04   -1.5749    
   2  alpha         3.9134        2.6893        .26341E-02    .60088    
   3  Normalizat    1.2659        .29341        .14820E-04   -.84590    
   4  Prefactor     1.0916        .13711        .76170E-05   -.89735    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.01933e-10
Minuit parameter uncertainties:
  1  1.14764
  2  13.3156
  3  0.293798
  4  0.137149
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/13965': 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) = 7474.11156529
delta logL = 0.000864742086378

Extracting fit parameters...

4FGL J1505.0+0326
   Spectrum: LogParabola
225         norm:  4.168e-02  1.148e+00  1.000e-04  1.000e+04 ( 1.000e-11)
226        alpha:  3.913e+00  1.332e+01  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.092e+00  1.371e-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.266e+00  2.938e-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/13965/cmap_HighResolution_408844801_409104001_4FGL_J1505.0+0326_daily_bin654.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.56e-05', job_status='DONE', photon_flux_upper_limit='1.32e-07', time_completed='2021-09-10 22:19:50.201246', job_id='13965', GAL2='1.09', fit_tolerance='1e-08', EG2='1.27', EG='1.27', time_epoch_completed='1631337590.2', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='8.65e-04', ts2='0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='654' AND source_name='4FGL J1505.0+0326' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 22:19:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 13965: <4FGL_J1505.0+0326_daily_bin654> in cluster <slac> Done

Job <4FGL_J1505.0+0326_daily_bin654> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Fri Sep 10 22:06:09 2021
Job was executed on host(s) <bullet0237>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 22:06: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 22:06:11 2021
Terminated at Fri Sep 10 22:19:50 2021
Results reported at Fri Sep 10 22:19:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1505.0+0326_daily_bin654 226.273 3.4472 408844801 409104001 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 :                                   585.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             280.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   819 sec.
    Turnaround time :                            821 sec.

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

