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


Performing analysis on: 4FGL_J1505.0+0326_daily_bin292
RA = 226.273, Dec = 3.4472
tmin = 315014401, tmax = 315273601
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='10829', job_status='RUN', time_executed='2021-09-10 21:59:34.870580', time_epoch_executed='1631336374.87' WHERE source_name='4FGL J1505.0+0326' and cadence='daily' and bin_id='292'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/10829

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/10829/ft1_4FGL_J1505.0+0326_daily_bin292.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/10829/ft2_4FGL_J1505.0+0326_daily_bin292.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/10829/ft1_4FGL_J1505.0+0326_daily_bin292.fits outfile=/scratch/kocevski/10829/ft1_filteredMKT_4FGL_J1505.0+0326_daily_bin292.fits ra=226.273 dec=3.4472 rad=12.0 tmin=315014401.0 tmax=315273601.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.56
user 3.33
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/10829/ft2_4FGL_J1505.0+0326_daily_bin292.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/10829/ft1_filteredMKT_4FGL_J1505.0+0326_daily_bin292.fits evtable="EVENTS" outfile="/scratch/kocevski/10829/ft1_filtered_4FGL_J1505.0+0326_daily_bin292.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.55
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/10829/ft1_filtered_4FGL_J1505.0+0326_daily_bin292.fits" evtable="EVENTS" scfile=/scratch/kocevski/10829/ft2_4FGL_J1505.0+0326_daily_bin292.fits sctable="SC_DATA" outfile=/scratch/kocevski/10829/ltcube_315014401_315273601_4FGL_J1505.0+0326_daily_bin292.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/10829/ft2_4FGL_J1505.0+0326_daily_bin292.fits
.....................!
real 12.26
user 11.80
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/10829/ft1_filtered_4FGL_J1505.0+0326_daily_bin292.fits evtable="EVENTS" scfile=/scratch/kocevski/10829/ft2_4FGL_J1505.0+0326_daily_bin292.fits sctable="SC_DATA" expcube=/scratch/kocevski/10829/ltcube_315014401_315273601_4FGL_J1505.0+0326_daily_bin292.fits outfile=/scratch/kocevski/10829/expmap_315014401_315273601_4FGL_J1505.0+0326_daily_bin292.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/10829/ltcube_315014401_315273601_4FGL_J1505.0+0326_daily_bin292.fits
.....................!
real 190.78
user 185.35
sys 4.59

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/10829/ft1_filtered_4FGL_J1505.0+0326_daily_bin292.fits scfile=/scratch/kocevski/10829/ft2_4FGL_J1505.0+0326_daily_bin292.fits outfile=/scratch/kocevski/10829/cmap_315014401_315273601_4FGL_J1505.0+0326_daily_bin292.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.55
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/10829/ft1_filtered_4FGL_J1505.0+0326_daily_bin292.fits scfile=/scratch/kocevski/10829/ft2_4FGL_J1505.0+0326_daily_bin292.fits outfile=/scratch/kocevski/10829/cmap_HighResolution_315014401_315273601_4FGL_J1505.0+0326_daily_bin292.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.55
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    49.963       1.0000         .10000E-03   10000.    
     2 'norm      '    12.446       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.7404       1.0000         .10000E-03   10000.    
     6 'Prefactor '    56.789       1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.810       1.0000         .10000E-03   10000.    
     8 'norm      '    .16446       1.0000         .10000E-03   10000.    
     9 'norm      '    3.9675       1.0000         .10000E-03   10000.    
    10 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.6061       1.0000         .10000E-03   10000.    
    12 'norm      '    3.5593       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .55883       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.2102       1.0000         .10000E-03   10000.    
    15 'Prefactor '    30.443       1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.814       1.0000         .10000E-03   10000.    
    17 'norm      '    11.748       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .83108       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0851       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.

 FCN=   9786.980     FROM MIGRAD    STATUS=CONVERGED    672 CALLS     2256 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     49.957        34.644        .56734E-04    .32727E-03
   2  norm          12.447        15.018        .11354E-03    .29437E-04
   3  Prefactor     .10001E-03    58.614        .18142E-02** at limit **
   4  Prefactor     .10000E-03    14.939        .18142E-02** at limit **
   5  norm          3.7400        8.9977        .20877E-03    .41963E-03
   6  Prefactor     56.801        30.541        .53233E-04   -.37938E-03
   7  Prefactor     23.816        21.308        .82090E-04    .44317E-04
   8  norm          .16439        .14430        .35537E-03    .12221E-02
   9  norm          3.9681        2.3593        .10937E-03    .83097E-03
  10  norm          .10000E-03    7.1602        .36285E-03** at limit **
  11  norm          1.6058        2.0827        .15927E-03    .78245E-03
  12  norm          3.5593        2.8174        .14232E-03    .78601E-04
  13  Prefactor     .50338        24.404        .14317        .25584E-03
  14  Prefactor     5.2103        4.3237        .17611E-03   -.86762E-04
  15  Prefactor     30.442        25.328        .72617E-04    .78279E-05
  16  Prefactor     10.814        4.7391        .12183E-03   -.42047E-03
  17  norm          11.748        4.9468        .11688E-03   -.20310E-03
  18  Normalizat    .83074        .23943        .40294E-03    .47456E-04
  19  Prefactor     1.0852        .11300        .17833E-03    .18342E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 49.9567
  norm       = 12.4473
  Prefactor  = 0.000100006
  Prefactor  = 0.000100001
  norm       = 3.74005
  Prefactor  = 56.8014
  Prefactor  = 23.8156
  norm       = 0.164391
  norm       = 3.96813
  norm       = 0.0001
  norm       = 1.60578
  norm       = 3.55929
  Prefactor  = 0.503379
  Prefactor  = 5.2103
  Prefactor  = 30.4421
  Prefactor  = 10.8138
  norm       = 11.7481
  Normalizat = 0.830738
  Prefactor  = 1.08523
 **********
 **   18 **HESSE 
 **********

 FCN=   9786.980     FROM HESSE     STATUS=OK           260 CALLS     2516 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     49.957        34.644        .11347E-04   -1.4293    
   2  norm          12.447        15.018        .45418E-05   -1.5002    
   3  Prefactor     .10001E-03    58.629        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    14.940        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.7400        8.9967        .83510E-05   -1.5321    
   6  Prefactor     56.801        30.535        .10647E-04   -1.4199    
   7  Prefactor     23.816        21.307        .32836E-05   -1.4732    
   8  norm          .16439        .14418        .14215E-04   -1.5627    
   9  norm          3.9681        2.3592        .43747E-05   -1.5310    
  10  norm          .10000E-03    7.1606        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.6058        2.0827        .63710E-05   -1.5455    
  12  norm          3.5593        2.8173        .56930E-05   -1.5331    
  13  Prefactor     .50338        23.847        .14576       -1.5566    
  14  Prefactor     5.2103        4.3233        .70443E-05   -1.5251    
  15  Prefactor     30.442        25.317        .29047E-05   -1.4604    
  16  Prefactor     10.814        4.7389        .48734E-05   -1.5050    
  17  norm          11.748        4.9465        .46750E-05   -1.5022    
  18  Normalizat    .83074        .23952        .16118E-04   -.98938    
  19  Prefactor     1.0852        .11306        .35666E-04   -.89940    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.0463e-09
Minuit parameter uncertainties:
  1  34.658
  2  15.0221
  3  0.0011588
  4  0.000287805
  5  8.99991
  6  30.5432
  7  21.3138
  8  0.144181
  9  2.35922
  10  9.6126e-05
  11  2.08279
  12  2.81739
  13  6.93161
  14  4.32356
  15  25.3258
  16  4.73909
  17  4.9467
  18  0.239829
  19  0.113087
Done.

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

Extracting fit parameters...

4FGL J1505.0+0326
   Spectrum: LogParabola
225         norm:  3.968e+00  2.359e+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.085e+00  1.131e-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:  8.307e-01  2.398e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.32
Ra Dec: 226.273 3.447
Photon Index (Fixed Index): 2.49 +/- 0.00
Photon Flux (Fixed Index): 8.37e-08 +/- 4.97e-08
Energy Flux (Fixed Index): 2.26e-05 +/- 1.34e-05

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) = 9786.93483362
delta logL = 0.0453222593205

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9786.93201406
delta logL = 0.0481418198178

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.8009       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7191       1.0000          .0000       5.0000    
     3 'Normalizat'    .81265       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0914       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.

 FCN=   9786.932     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      209 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.8010        45.182        .51761E-02    .75814E-03
   2  alpha         2.7193        3.1660        .41353        .24566E-04
   3  Normalizat    .81264        .99580E-01    .91878E-01    .42540E-04
   4  Prefactor     1.0914        .51436E-01    .37922E-01   -.30572E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.80096
  alpha      = 2.71927
  Normalizat = 0.812635
  Prefactor  = 1.09142
 **********
 **   18 **HESSE 
 **********

 FCN=   9786.932     FROM HESSE     STATUS=OK            33 CALLS      242 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.8010        2.5038        .10334E-03   -1.5318    
   2  alpha         2.7193        .80252        .21230E-01    .87821E-01
   3  Normalizat    .81264        .23045        .40701E-03   -.99602    
   4  Prefactor     1.0914        .11271        .17790E-03   -.89741    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00434e-09
Minuit parameter uncertainties:
  1  2.50382
  2  0.817103
  3  0.230726
  4  0.112735
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/10829': 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) = 9786.93201402
delta logL = 0.0481418631971

Extracting fit parameters...

4FGL J1505.0+0326
   Spectrum: LogParabola
225         norm:  3.801e+00  2.504e+00  1.000e-04  1.000e+04 ( 1.000e-11)
226        alpha:  2.719e+00  8.171e-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.091e+00  1.127e-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:  8.126e-01  2.307e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.50
Ra Dec: 226.273 3.447
Photon Index (Free Index): 2.72 +/- 0.82
Photon Flux (Free Index): 9.59e-08 +/- 6.38e-08
Energy Flux (Free Index): 2.22e-05 +/- 1.30e-05

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/10829/cmap_HighResolution_315014401_315273601_4FGL_J1505.0+0326_daily_bin292.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.37e-08', energy_flux2='2.22e-05', photon_flux_error='4.97e-08', dlogl='4.81e-02', energy_flux='2.26e-05', photon_flux2='9.59e-08', job_status='DONE', time_completed='2021-09-10 22:10:17.861606', photon_index_error2='0.82', photon_index2='2.72', ts='4.32', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', energy_flux_error2='1.30e-05', EG='0.83', time_epoch_completed='1631337017.86', return_code='0', job_id='10829', GAL2='1.09', EG2='0.81', return_code2='0', energy_flux_error='1.34e-05', photon_flux_error2='6.38e-08', ts2='4.50', photon_index='2.49' WHERE bin_id='292' AND source_name='4FGL J1505.0+0326' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 22:10:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 10829: <4FGL_J1505.0+0326_daily_bin292> in cluster <slac> Done

Job <4FGL_J1505.0+0326_daily_bin292> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 10 21:56:13 2021
Job was executed on host(s) <bullet0082>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 21:56:15 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:15 2021
Terminated at Fri Sep 10 22:10:18 2021
Results reported at Fri Sep 10 22:10:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1505.0+0326_daily_bin292 226.273 3.4472 315014401 315273601 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 :                                   640.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             278.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   843 sec.
    Turnaround time :                            845 sec.

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

