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


Performing analysis on: 4FGL_J1505.0+0326_daily_bin718
RA = 226.273, Dec = 3.4472
tmin = 425433601, tmax = 425692801
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='14104', job_status='RUN', time_executed='2021-09-10 22:08:45.164883', time_epoch_executed='1631336925.16' WHERE source_name='4FGL J1505.0+0326' and cadence='daily' and bin_id='718'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/14104

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

Retrieving the FT1 file...

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

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

Retrieving 38 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/14104/ft1_4FGL_J1505.0+0326_daily_bin718.fits


Retrieving the FT1 file...

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

Retrieving 38 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/14104/ft2_4FGL_J1505.0+0326_daily_bin718.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/14104/ft1_4FGL_J1505.0+0326_daily_bin718.fits outfile=/scratch/kocevski/14104/ft1_filteredMKT_4FGL_J1505.0+0326_daily_bin718.fits ra=226.273 dec=3.4472 rad=12.0 tmin=425433601.0 tmax=425692801.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.06
user 2.83
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/14104/ft1_filtered_4FGL_J1505.0+0326_daily_bin718.fits" evtable="EVENTS" scfile=/scratch/kocevski/14104/ft2_4FGL_J1505.0+0326_daily_bin718.fits sctable="SC_DATA" outfile=/scratch/kocevski/14104/ltcube_425433601_425692801_4FGL_J1505.0+0326_daily_bin718.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/14104/ft2_4FGL_J1505.0+0326_daily_bin718.fits
.....................!
real 10.16
user 9.80
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/14104/ft1_filtered_4FGL_J1505.0+0326_daily_bin718.fits evtable="EVENTS" scfile=/scratch/kocevski/14104/ft2_4FGL_J1505.0+0326_daily_bin718.fits sctable="SC_DATA" expcube=/scratch/kocevski/14104/ltcube_425433601_425692801_4FGL_J1505.0+0326_daily_bin718.fits outfile=/scratch/kocevski/14104/expmap_425433601_425692801_4FGL_J1505.0+0326_daily_bin718.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/14104/ltcube_425433601_425692801_4FGL_J1505.0+0326_daily_bin718.fits
.....................!
real 190.58
user 185.05
sys 5.19

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/14104/ft1_filtered_4FGL_J1505.0+0326_daily_bin718.fits scfile=/scratch/kocevski/14104/ft2_4FGL_J1505.0+0326_daily_bin718.fits outfile=/scratch/kocevski/14104/cmap_425433601_425692801_4FGL_J1505.0+0326_daily_bin718.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.35
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/14104/ft1_filtered_4FGL_J1505.0+0326_daily_bin718.fits scfile=/scratch/kocevski/14104/ft2_4FGL_J1505.0+0326_daily_bin718.fits outfile=/scratch/kocevski/14104/cmap_HighResolution_425433601_425692801_4FGL_J1505.0+0326_daily_bin718.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.36
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    24.792       1.0000         .10000E-03   10000.    
     3 'Prefactor '    66.699       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    17.490       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .43809       1.0000         .10000E-03   10000.    
     9 'norm      '    3.1606       1.0000         .10000E-03   10000.    
    10 'norm      '    7.3934       1.0000         .10000E-03   10000.    
    11 'norm      '    1.2557       1.0000         .10000E-03   10000.    
    12 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.2200       1.0000         .10000E-03   10000.    
    15 'Prefactor '    28.571       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .75226       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .90645       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1198       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=   7427.252     FROM MIGRAD    STATUS=CONVERGED    398 CALLS     1897 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.973        .65434E-06** at limit **
   2  norm          24.792        23.706        .59195E-06    .78010E-05
   3  Prefactor     66.673        71.647       -.27776E-04    .34330E-05
   4  Prefactor     .10000E-03    10.747       -.10433E-05** at limit **
   5  norm          .10000E-03    6.9156       -.43855E-05** at limit **
   6  Prefactor     17.488        20.675       -.12397E-05    .86410E-05
   7  Prefactor     .10000E-03    7.5483        .34881E-05** at limit **
   8  norm          .43806        .21384       -.20878E-07   -.83773E-04
   9  norm          3.1590        2.7114       -.24021E-07   -.18183E-03
  10  norm          7.3935        8.2313       -.10644E-06   -.72889E-05
  11  norm          1.2569        4.0731        .10981E-06   -.78872E-04
  12  norm          .10000E-03    2.8813        .60089E-06** at limit **
  13  Prefactor     .10000E-03    48.584       -.51284E-06** at limit **
  14  Prefactor     1.2199        2.8204       -.34546E-06   -.14170E-03
  15  Prefactor     28.578        32.805        .65321E-05    .17152E-05
  16  Prefactor     .10000E-03    1.8879       -.95616E-07** at limit **
  17  norm          .75076        .58984        .76052E-07   -.16117E-02
  18  Normalizat    .90668        .23583        .33712E-05   -.91393E-04
  19  Prefactor     1.1197        .11591       -.50840E-06    .21219E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 24.7922
  Prefactor  = 66.673
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 17.4877
  Prefactor  = 0.0001
  norm       = 0.438058
  norm       = 3.15902
  norm       = 7.39347
  norm       = 1.25694
  norm       = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 1.21987
  Prefactor  = 28.5776
  Prefactor  = 0.0001
  norm       = 0.750763
  Normalizat = 0.906676
  Prefactor  = 1.11969
 **********
 **   18 **HESSE 
 **********

 FCN=   7427.252     FROM HESSE     STATUS=OK           272 CALLS     2169 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.000        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          24.792        23.711        .80451E-04   -1.4712    
   3  Prefactor     66.673        71.666        .49144E-04   -1.4073    
   4  Prefactor     .10000E-03    10.748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    6.9135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     17.488        20.673        .95769E-04   -1.4871    
   7  Prefactor     .10000E-03    7.5550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .43806        .21155        .26329E-04   -1.5576    
   9  norm          3.1590        2.6763        .12283E-03   -1.5352    
  10  norm          7.3935        8.2290        .14750E-03   -1.5164    
  11  norm          1.2569        4.0844        .29991E-03   -1.5484    
  12  norm          .10000E-03    6.3862        .27955E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    48.737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.2199        2.7648        .21180E-03   -1.5487    
  15  Prefactor     28.578        33.317        .74952E-04   -1.4638    
  16  Prefactor     .10000E-03    1.9031        .11560E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .75076        5.1931        .18410E-02   -1.5535    
  18  Normalizat    .90668        .26505        .38937E-03   -.96226    
  19  Prefactor     1.1197        .13183        .17838E-03   -.88840    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.54402e-09
Minuit parameter uncertainties:
  1  1.41811e-05
  2  23.7205
  3  71.7586
  4  1.73896e-05
  5  1.20435e-05
  6  20.6815
  7  3.91957e-06
  8  0.211548
  9  2.67638
  10  8.23029
  11  4.0853
  12  0.000264878
  13  8.61088e-05
  14  2.76507
  15  33.3384
  16  1.11592e-05
  17  3.9493
  18  0.26543
  19  0.131865
Done.

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

Extracting fit parameters...

4FGL J1505.0+0326
   Spectrum: LogParabola
225         norm:  3.159e+00  2.676e+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.120e+00  1.319e-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:  9.067e-01  2.654e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.90
Ra Dec: 226.273 3.447
Photon Index (Fixed Index): 2.49 +/- 0.00
Photon Flux (Fixed Index): 6.66e-08 +/- 5.64e-08
Energy Flux (Fixed Index): 1.80e-05 +/- 1.52e-05

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

Saving results to:
/scratch/kocevski/14104/likelihoodResults_425433601_425692801_4FGL_J1505.0+0326_daily_bin718.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) = 7426.98016517
delta logL = 0.272034422804

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7426.97358772
delta logL = 0.278611873051

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.3208       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0047       1.0000          .0000       5.0000    
     3 'Normalizat'    .92885       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1112       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=   7426.974     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      205 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.3185        2.9935        .55534E-02    .42792E-03
   2  alpha         2.0044        .53058        .42221       -.34036E-04
   3  Normalizat    .92884        .22695        .86967E-01    .29565E-04
   4  Prefactor     1.1113        .11481        .37174E-01   -.67871E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.31849
  alpha      = 2.00438
  Normalizat = 0.928843
  Prefactor  = 1.11128
 **********
 **   18 **HESSE 
 **********

 FCN=   7426.974     FROM HESSE     STATUS=OK            33 CALLS      238 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.3185        2.7544        .11870E-03   -1.5344    
   2  alpha         2.0044        .59277        .15975E-01   -.19957    
   3  Normalizat    .92884        .25835        .38510E-03   -.95454    
   4  Prefactor     1.1113        .13036        .17890E-03   -.89107    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14906e-09
Minuit parameter uncertainties:
  1  2.75453
  2  0.598713
  3  0.258696
  4  0.130397
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/14104': 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) = 7426.97358727
delta logL = 0.278612315446

Extracting fit parameters...

4FGL J1505.0+0326
   Spectrum: LogParabola
225         norm:  3.318e+00  2.755e+00  1.000e-04  1.000e+04 ( 1.000e-11)
226        alpha:  2.004e+00  5.987e-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.111e+00  1.304e-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:  9.288e-01  2.587e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.44
Ra Dec: 226.273 3.447
Photon Index (Free Index): 2.00 +/- 0.60
Photon Flux (Free Index): 5.18e-08 +/- 4.97e-08
Energy Flux (Free Index): 2.34e-05 +/- 1.97e-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/14104/cmap_HighResolution_425433601_425692801_4FGL_J1505.0+0326_daily_bin718.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.92e-05', comment='SUCCESS', photon_flux='6.66e-08', energy_flux2='2.34e-05', photon_flux_error='5.64e-08', dlogl='2.79e-01', energy_flux='1.80e-05', photon_flux2='5.18e-08', job_status='DONE', time_completed='2021-09-10 22:18:11.915854', photon_index_error2='0.60', photon_index2='2.00', ts='1.90', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', photon_flux_upper_limit='1.82e-07', energy_flux_error2='1.97e-05', EG='0.91', time_epoch_completed='1631337491.92', return_code='0', job_id='14104', GAL2='1.11', EG2='0.93', return_code2='0', energy_flux_error='1.52e-05', photon_flux_error2='4.97e-08', ts2='2.44', photon_index='2.49' WHERE bin_id='718' AND source_name='4FGL J1505.0+0326' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 22:18:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0297>
Subject: Job 14104: <4FGL_J1505.0+0326_daily_bin718> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1505.0+0326_daily_bin718 226.273 3.4472 425433601 425692801 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 :                                   567.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             280.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   714 sec.
    Turnaround time :                            716 sec.

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

