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


Performing analysis on: 4FGL_J1505.0+0326_daily_bin119
RA = 226.273, Dec = 3.4472
tmin = 270172801, tmax = 270432001
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='9506', job_status='RUN', time_executed='2021-09-10 21:53:31.812904', time_epoch_executed='1631336011.81' WHERE source_name='4FGL J1505.0+0326' and cadence='daily' and bin_id='119'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/9506

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/9506/ft1_4FGL_J1505.0+0326_daily_bin119.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/9506/ft2_4FGL_J1505.0+0326_daily_bin119.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/9506/ft1_4FGL_J1505.0+0326_daily_bin119.fits outfile=/scratch/kocevski/9506/ft1_filteredMKT_4FGL_J1505.0+0326_daily_bin119.fits ra=226.273 dec=3.4472 rad=12.0 tmin=270172801.0 tmax=270432001.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 1.65
user 1.44
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/9506/ft1_filtered_4FGL_J1505.0+0326_daily_bin119.fits" evtable="EVENTS" scfile=/scratch/kocevski/9506/ft2_4FGL_J1505.0+0326_daily_bin119.fits sctable="SC_DATA" outfile=/scratch/kocevski/9506/ltcube_270172801_270432001_4FGL_J1505.0+0326_daily_bin119.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/9506/ft2_4FGL_J1505.0+0326_daily_bin119.fits
.....................!
real 12.36
user 11.95
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/9506/ft1_filtered_4FGL_J1505.0+0326_daily_bin119.fits evtable="EVENTS" scfile=/scratch/kocevski/9506/ft2_4FGL_J1505.0+0326_daily_bin119.fits sctable="SC_DATA" expcube=/scratch/kocevski/9506/ltcube_270172801_270432001_4FGL_J1505.0+0326_daily_bin119.fits outfile=/scratch/kocevski/9506/expmap_270172801_270432001_4FGL_J1505.0+0326_daily_bin119.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/9506/ltcube_270172801_270432001_4FGL_J1505.0+0326_daily_bin119.fits
.....................!
real 190.53
user 184.61
sys 5.56

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/9506/ft1_filtered_4FGL_J1505.0+0326_daily_bin119.fits scfile=/scratch/kocevski/9506/ft2_4FGL_J1505.0+0326_daily_bin119.fits outfile=/scratch/kocevski/9506/cmap_270172801_270432001_4FGL_J1505.0+0326_daily_bin119.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.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/9506/ft1_filtered_4FGL_J1505.0+0326_daily_bin119.fits scfile=/scratch/kocevski/9506/ft2_4FGL_J1505.0+0326_daily_bin119.fits outfile=/scratch/kocevski/9506/cmap_HighResolution_270172801_270432001_4FGL_J1505.0+0326_daily_bin119.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.53
user 0.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.019       1.0000         .10000E-03   10000.    
     2 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .13299E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.0291       1.0000         .10000E-03   10000.    
     8 'norm      '    1.4734       1.0000         .10000E-03   10000.    
     9 'norm      '    1.5255       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.0451       1.0000         .10000E-03   10000.    
    12 'norm      '    .96199       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.3288       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10704E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.2091       1.0000         .10000E-03   10000.    
    17 'norm      '    5.3632       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1268       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0936       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=   12492.13     FROM MIGRAD    STATUS=CONVERGED    406 CALLS     1932 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.020        20.124        .17632E-06    .10131E-04
   2  norm          .10000E-03    11.162        .16643E-06** at limit **
   3  Prefactor     .10000E-03    37.746        .44015E-05** at limit **
   4  Prefactor     .10000E-03    15.514        .13737E-05** at limit **
   5  norm          .10000E-03    36.402       -.11591E-04** at limit **
   6  Prefactor     .10000E-03    5.4054       -.15370E-06** at limit **
   7  Prefactor     6.0291        10.799        .39089E-06   -.46526E-03
   8  norm          1.4735        .22073        .57611E-08    .42586E-03
   9  norm          1.5256        2.0397        .15806E-07   -.36849E-03
  10  norm          .10000E-03    1.3282        .26997E-07** at limit **
  11  norm          4.0452        2.7278        .25341E-08   -.50714E-04
  12  norm          .96208        2.1841       -.11634E-07   -.38211E-03
  13  Prefactor     .10000E-03    12.992       -.10376E-05** at limit **
  14  Prefactor     1.3294        3.3608        .32219E-07   -.45315E-03
  15  Prefactor     .10000E-03    62.421       -.41618E-05** at limit **
  16  Prefactor     3.2100        4.2946       -.51735E-07   -.19842E-03
  17  norm          5.3637        2.7748        .26655E-06   -.24371E-02
  18  Normalizat    1.1267        .18926       -.14693E-06    .12506E-03
  19  Prefactor     1.0936        .93888E-01    .14839E-07    .22629E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.0196
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.02915
  norm       = 1.47346
  norm       = 1.52557
  norm       = 0.0001
  norm       = 4.04521
  norm       = 0.962079
  Prefactor  = 0.0001
  Prefactor  = 1.32943
  Prefactor  = 0.0001
  Prefactor  = 3.20998
  norm       = 5.36374
  Normalizat = 1.12672
  Prefactor  = 1.09362
 **********
 **   18 **HESSE 
 **********

 FCN=   12492.13     FROM HESSE     STATUS=OK           272 CALLS     2204 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.020        20.190        .12069E-03   -1.5044    
   2  norm          .10000E-03    11.208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    38.027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    15.620        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    36.788        .41126E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.4129        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.0291        11.767        .81761E-03   -1.5217    
   8  norm          1.4735        .22129        .19386E-04   -1.5465    
   9  norm          1.5256        2.0049        .16854E-03   -1.5461    
  10  norm          .10000E-03    1.3291        .12579E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.0452        2.7279        .14713E-03   -1.5306    
  12  norm          .96208        2.2641        .23516E-02   -1.5512    
  13  Prefactor     .10000E-03    13.027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.3294        3.4209        .31419E-03   -1.5477    
  15  Prefactor     .10000E-03    63.430        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.2100        4.2658        .22616E-03   -1.5350    
  17  norm          5.3637        3.8953        .86766E-03   -1.5245    
  18  Normalizat    1.1267        .21943        .36706E-03   -.88899    
  19  Prefactor     1.0936        .10929        .18897E-03   -.89671    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.47146e-08
Minuit parameter uncertainties:
  1  20.2023
  2  3.76362e-06
  3  0.000202852
  4  6.90788e-05
  5  0.000187132
  6  1.90124e-06
  7  11.7714
  8  0.221285
  9  2.005
  10  2.02749e-07
  11  2.72796
  12  2.26433
  13  2.68023e-05
  14  3.42141
  15  0.000196965
  16  4.26622
  17  3.89553
  18  0.219613
  19  0.109311
Done.

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

Extracting fit parameters...

4FGL J1505.0+0326
   Spectrum: LogParabola
225         norm:  1.526e+00  2.005e+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.094e+00  1.093e-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.127e+00  2.196e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.74
Ra Dec: 226.273 3.447
Photon Flux Upper Limit: 1.17e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.15e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/9506/likelihoodResults_270172801_270432001_4FGL_J1505.0+0326_daily_bin119.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) = 12491.1759327
delta logL = 0.951386316272

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 12491.1753608
delta logL = 0.951958276633

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .90522       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.0724       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0516       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1179       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=   12491.18     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      281 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .90567        19.780        .69596E-03   -.14035E-02
   2  alpha         4.0716        2.8039        .35104E-01   -.26035E-04
   3  Normalizat    1.0515        .18415        .37836E-03    .81722E-03
   4  Prefactor     1.1181        .96095E-01    .18713E-03    .19865E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.905671
  alpha      = 4.07164
  Normalizat = 1.05153
  Prefactor  = 1.1181
 **********
 **   18 **HESSE 
 **********

 FCN=   12491.18     FROM HESSE     STATUS=OK            27 CALLS      308 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .90567        1.4878        .27839E-04   -1.5518    
   2  alpha         4.0716        1.3120        .14042E-02    .67982    
   3  Normalizat    1.0515        .22020        .75671E-04   -.91323    
   4  Prefactor     1.1181        .10942        .37425E-04   -.88890    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48288e-09
Minuit parameter uncertainties:
  1  1.48781
  2  1.44017
  3  0.220396
  4  0.109439
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/9506': 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) = 12491.1753577
delta logL = 0.951961323604

Extracting fit parameters...

4FGL J1505.0+0326
   Spectrum: LogParabola
225         norm:  9.057e-01  1.488e+00  1.000e-04  1.000e+04 ( 1.000e-11)
226        alpha:  4.072e+00  1.440e+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.118e+00  1.094e-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.052e+00  2.204e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.87
Ra Dec: 226.273 3.447
Photon Index (Free Index): 4.07 +/- 1.44
Photon Flux (Free Index): 8.55e-08 +/- 5.95e-08
Energy Flux (Free Index): 1.29e-05 +/- 9.21e-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/9506/cmap_HighResolution_270172801_270432001_4FGL_J1505.0+0326_daily_bin119.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.15e-05', comment='SUCCESS', energy_flux2='1.29e-05', dlogl='9.52e-01', photon_flux2='8.55e-08', job_status='DONE', time_completed='2021-09-10 22:06:30.225200', photon_index_error2='1.44', photon_index2='4.07', ts='0.74', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='1.17e-07', energy_flux_error2='9.21e-06', EG='1.13', time_epoch_completed='1631336790.23', return_code='0', job_id='9506', GAL2='1.12', EG2='1.05', return_code2='0', photon_flux_error2='5.95e-08', ts2='2.87', photon_index='2.49' WHERE bin_id='119' AND source_name='4FGL J1505.0+0326' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 22:06:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 9506: <4FGL_J1505.0+0326_daily_bin119> in cluster <slac> Done

Job <4FGL_J1505.0+0326_daily_bin119> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep 10 21:51:36 2021
Job was executed on host(s) <bullet0283>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 21:51:38 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:51:38 2021
Terminated at Fri Sep 10 22:06:31 2021
Results reported at Fri Sep 10 22:06:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1505.0+0326_daily_bin119 226.273 3.4472 270172801 270432001 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 :                                   778.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             290.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   892 sec.
    Turnaround time :                            895 sec.

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

