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


Performing analysis on: 4FGL_J1505.0+0326_daily_bin400
RA = 226.273, Dec = 3.4472
tmin = 343008001, tmax = 343267201
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='12177', job_status='RUN', time_executed='2021-09-10 22:05:11.569685', time_epoch_executed='1631336711.57' WHERE source_name='4FGL J1505.0+0326' and cadence='daily' and bin_id='400'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/12177

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/12177/ft1_4FGL_J1505.0+0326_daily_bin400.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/12177/ft2_4FGL_J1505.0+0326_daily_bin400.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/12177/ft1_4FGL_J1505.0+0326_daily_bin400.fits outfile=/scratch/kocevski/12177/ft1_filteredMKT_4FGL_J1505.0+0326_daily_bin400.fits ra=226.273 dec=3.4472 rad=12.0 tmin=343008001.0 tmax=343267201.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.98
user 3.75
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/12177/ft2_4FGL_J1505.0+0326_daily_bin400.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/12177/ft1_filteredMKT_4FGL_J1505.0+0326_daily_bin400.fits evtable="EVENTS" outfile="/scratch/kocevski/12177/ft1_filtered_4FGL_J1505.0+0326_daily_bin400.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.52
user 0.35
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/12177/ft1_filtered_4FGL_J1505.0+0326_daily_bin400.fits evtable="EVENTS" scfile=/scratch/kocevski/12177/ft2_4FGL_J1505.0+0326_daily_bin400.fits sctable="SC_DATA" expcube=/scratch/kocevski/12177/ltcube_343008001_343267201_4FGL_J1505.0+0326_daily_bin400.fits outfile=/scratch/kocevski/12177/expmap_343008001_343267201_4FGL_J1505.0+0326_daily_bin400.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/12177/ltcube_343008001_343267201_4FGL_J1505.0+0326_daily_bin400.fits
.....................!
real 191.66
user 186.47
sys 4.74

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/12177/ft1_filtered_4FGL_J1505.0+0326_daily_bin400.fits scfile=/scratch/kocevski/12177/ft2_4FGL_J1505.0+0326_daily_bin400.fits outfile=/scratch/kocevski/12177/cmap_343008001_343267201_4FGL_J1505.0+0326_daily_bin400.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/12177/ft1_filtered_4FGL_J1505.0+0326_daily_bin400.fits scfile=/scratch/kocevski/12177/ft2_4FGL_J1505.0+0326_daily_bin400.fits outfile=/scratch/kocevski/12177/cmap_HighResolution_343008001_343267201_4FGL_J1505.0+0326_daily_bin400.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.56
user 0.41
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    58.945       1.0000         .10000E-03   10000.    
     2 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.783       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    10.812       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.8131       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.086       1.0000         .10000E-03   10000.    
     8 'norm      '    .55617       1.0000         .10000E-03   10000.    
     9 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.3604       1.0000         .10000E-03   10000.    
    11 'norm      '    21.683       1.0000         .10000E-03   10000.    
    12 'norm      '    7.4033       1.0000         .10000E-03   10000.    
    13 'Prefactor '    37.205       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .14616E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.7475       1.0000         .10000E-03   10000.    
    17 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2597       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .99973       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=   9990.557     FROM MIGRAD    STATUS=CONVERGED    374 CALLS     1896 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     58.961        36.107        .17998E-04    .52695E-04
   2  norm          .10000E-03    8.2912        .20295E-05** at limit **
   3  Prefactor     14.724        45.374       -.13659E-03    .24515E-04
   4  Prefactor     .10000E-03    21.969       -.20555E-04** at limit **
   5  norm          10.812        13.953        .14045E-05    .25890E-03
   6  Prefactor     8.8155        20.696        .34204E-05    .11093E-04
   7  Prefactor     11.084        16.641       -.23229E-05   -.18383E-04
   8  norm          .55621        .19156       -.55972E-07   -.19414E-03
   9  norm          .10000E-03    .77608        .14509E-06** at limit **
  10  norm          3.3594        6.0696       -.69028E-06   -.32958E-03
  11  norm          21.682        7.2222       -.38675E-06    .17434E-04
  12  norm          7.4030        4.0814        .11425E-06   -.73165E-04
  13  Prefactor     37.206        33.202        .10023E-05    .45828E-04
  14  Prefactor     .10002E-03    2.2043       -.16401E-05** at limit **
  15  Prefactor     .10000E-03    19.522        .22422E-04** at limit **
  16  Prefactor     4.7484        4.3353        .44365E-06   -.40368E-03
  17  norm          .10000E-03    2.8827       -.32797E-06** at limit **
  18  Normalizat    1.2593        .21544        .15728E-05    .26792E-03
  19  Prefactor     1.0000        .10388        .15889E-05    .29361E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 58.9612
  norm       = 0.0001
  Prefactor  = 14.7243
  Prefactor  = 0.0001
  norm       = 10.8118
  Prefactor  = 8.81549
  Prefactor  = 11.0844
  norm       = 0.556214
  norm       = 0.0001
  norm       = 3.35941
  norm       = 21.6822
  norm       = 7.40296
  Prefactor  = 37.206
  Prefactor  = 0.000100024
  Prefactor  = 0.0001
  Prefactor  = 4.74839
  norm       = 0.0001
  Normalizat = 1.25926
  Prefactor  = 1.00001
 **********
 **   18 **HESSE 
 **********

 FCN=   9990.557     FROM HESSE     STATUS=OK           270 CALLS     2166 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     58.961        36.327        .52256E-04   -1.4171    
   2  norm          .10000E-03    8.2946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     14.724        45.479        .10417E-03   -1.4940    
   4  Prefactor     .10000E-03    21.981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          10.812        13.943        .12184E-03   -1.5050    
   6  Prefactor     8.8155        20.714        .13502E-03   -1.5114    
   7  Prefactor     11.084        16.644        .12033E-03   -1.5042    
   8  norm          .55621        .19010        .24405E-04   -1.5559    
   9  norm          .10000E-03    .80222        .17177E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.3594        6.0584        .22076E-03   -1.5341    
  11  norm          21.682        7.2219        .86017E-04   -1.4776    
  12  norm          7.4030        4.0796        .14449E-03   -1.5164    
  13  Prefactor     37.206        33.208        .65706E-04   -1.4487    
  14  Prefactor     .10002E-03    9.6332        .28451E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    19.564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.7484        4.3183        .18466E-03   -1.5272    
  17  norm          .10000E-03    2.9611        .33128E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.2593        .25187        .36299E-03   -.84791    
  19  Prefactor     1.0000        .12173        .19921E-03   -.92729    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.91007e-09
Minuit parameter uncertainties:
  1  36.3408
  2  4.77107e-05
  3  45.5867
  4  2.8665e-05
  5  13.9467
  6  20.7304
  7  16.6507
  8  0.190105
  9  2.15689e-07
  10  6.05954
  11  7.22216
  12  4.07978
  13  33.2249
  14  0.000970686
  15  7.69482e-05
  16  4.31854
  17  2.1549e-05
  18  0.252116
  19  0.121763
Done.

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

Extracting fit parameters...

4FGL J1505.0+0326
   Spectrum: LogParabola
225         norm:  1.000e-04  2.157e-07  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.000e+00  1.218e-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.259e+00  2.521e-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: 6.47e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.75e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/12177/likelihoodResults_343008001_343267201_4FGL_J1505.0+0326_daily_bin400.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) = 9990.56250745
delta logL = -0.00594157494743

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9990.55656587
delta logL = 6.26823748462e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4920       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2593       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0000       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=   9990.557     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      239 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .81850        .17180E-03** at limit **
   2  alpha         2.5775        3.3808        .16461       -.61054E-07
   3  Normalizat    1.2593        .23811        .36299E-03   -.36030E-03
   4  Prefactor     1.0000        .11888        .19921E-03   -.66052E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.57753
  Normalizat = 1.25926
  Prefactor  = 1.00001
 **********
 **   18 **HESSE 
 **********

 FCN=   9990.557     FROM HESSE     STATUS=OK            23 CALLS      262 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .80574        .34359E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.5775        3.5927        .65843E-02    .31017E-01
   3  Normalizat    1.2593        .23829        .14519E-04   -.84791    
   4  Prefactor     1.0000        .11898        .39842E-04   -.92729    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.02832e-10
Minuit parameter uncertainties:
  1  1.68934e-06
  2  120.659
  3  0.2385
  4  0.119007
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/12177': 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) = 9990.55656561
delta logL = 2.71107637673e-07

Extracting fit parameters...

4FGL J1505.0+0326
   Spectrum: LogParabola
225         norm:  1.000e-04  1.689e-06  1.000e-04  1.000e+04 ( 1.000e-11)
226        alpha:  2.578e+00  1.207e+02  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.000e+00  1.190e-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.259e+00  2.385e-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/12177/cmap_HighResolution_343008001_343267201_4FGL_J1505.0+0326_daily_bin400.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.75e-05', job_status='DONE', photon_flux_upper_limit='6.47e-08', time_completed='2021-09-10 22:16:58.685876', job_id='12177', GAL2='1.00', fit_tolerance='1e-08', EG2='1.26', EG='1.26', time_epoch_completed='1631337418.69', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='2.71e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='400' AND source_name='4FGL J1505.0+0326' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 22:16:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 12177: <4FGL_J1505.0+0326_daily_bin400> in cluster <slac> Done

Job <4FGL_J1505.0+0326_daily_bin400> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Fri Sep 10 22:01:14 2021
Job was executed on host(s) <bullet0075>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 22:01:16 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:01:16 2021
Terminated at Fri Sep 10 22:16:59 2021
Results reported at Fri Sep 10 22:16:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1505.0+0326_daily_bin400 226.273 3.4472 343008001 343267201 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 :                                   702.45 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             276.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   943 sec.
    Turnaround time :                            945 sec.

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

