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


Performing analysis on: 4FGL_J1505.0+0326_daily_bin439
RA = 226.273, Dec = 3.4472
tmin = 353116801, tmax = 353376001
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='12239', job_status='RUN', time_executed='2021-09-10 22:03:44.781197', time_epoch_executed='1631336624.78' WHERE source_name='4FGL J1505.0+0326' and cadence='daily' and bin_id='439'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/12239

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/12239/ft1_4FGL_J1505.0+0326_daily_bin439.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/12239/ft2_4FGL_J1505.0+0326_daily_bin439.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/12239/ft1_4FGL_J1505.0+0326_daily_bin439.fits outfile=/scratch/kocevski/12239/ft1_filteredMKT_4FGL_J1505.0+0326_daily_bin439.fits ra=226.273 dec=3.4472 rad=12.0 tmin=353116801.0 tmax=353376001.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.43
user 3.23
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/12239/ft2_4FGL_J1505.0+0326_daily_bin439.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/12239/ft1_filteredMKT_4FGL_J1505.0+0326_daily_bin439.fits evtable="EVENTS" outfile="/scratch/kocevski/12239/ft1_filtered_4FGL_J1505.0+0326_daily_bin439.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/12239/ft1_filtered_4FGL_J1505.0+0326_daily_bin439.fits" evtable="EVENTS" scfile=/scratch/kocevski/12239/ft2_4FGL_J1505.0+0326_daily_bin439.fits sctable="SC_DATA" outfile=/scratch/kocevski/12239/ltcube_353116801_353376001_4FGL_J1505.0+0326_daily_bin439.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/12239/ft2_4FGL_J1505.0+0326_daily_bin439.fits
.....................!
real 11.83
user 11.49
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/12239/ft1_filtered_4FGL_J1505.0+0326_daily_bin439.fits evtable="EVENTS" scfile=/scratch/kocevski/12239/ft2_4FGL_J1505.0+0326_daily_bin439.fits sctable="SC_DATA" expcube=/scratch/kocevski/12239/ltcube_353116801_353376001_4FGL_J1505.0+0326_daily_bin439.fits outfile=/scratch/kocevski/12239/expmap_353116801_353376001_4FGL_J1505.0+0326_daily_bin439.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/12239/ltcube_353116801_353376001_4FGL_J1505.0+0326_daily_bin439.fits
.....................!
real 192.96
user 185.55
sys 6.43

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/12239/ft1_filtered_4FGL_J1505.0+0326_daily_bin439.fits scfile=/scratch/kocevski/12239/ft2_4FGL_J1505.0+0326_daily_bin439.fits outfile=/scratch/kocevski/12239/cmap_353116801_353376001_4FGL_J1505.0+0326_daily_bin439.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/12239/ft1_filtered_4FGL_J1505.0+0326_daily_bin439.fits scfile=/scratch/kocevski/12239/ft2_4FGL_J1505.0+0326_daily_bin439.fits outfile=/scratch/kocevski/12239/cmap_HighResolution_353116801_353376001_4FGL_J1505.0+0326_daily_bin439.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.3064       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.982       1.0000         .10000E-03   10000.    
     5 'norm      '    .10180E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    29.018       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10348E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .20720       1.0000         .10000E-03   10000.    
     9 'norm      '    1.4204       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    31.434       1.0000         .10000E-03   10000.    
    12 'norm      '    2.6778       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.7456       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.5882       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.6465       1.0000         .10000E-03   10000.    
    17 'norm      '    .27408       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0500       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1511       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=   11047.95     FROM MIGRAD    STATUS=CONVERGED    385 CALLS     1661 TOTAL
                     EDM=   .76E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.3065        18.522       -.34977E-07    .88851E-05
   2  norm          .10000E-03    13.448       -.42375E-05** at limit **
   3  Prefactor     .10000E-03    14.724        .32839E-05** at limit **
   4  Prefactor     14.971        24.656       -.36547E-05   -.21604E-03
   5  norm          .10000E-03    9.4490       -.29897E-06** at limit **
   6  Prefactor     29.015        18.249        .34519E-06    .84524E-04
   7  Prefactor     .10000E-03    72.367        .16854E-06** at limit **
   8  norm          .20720        .14170       -.21225E-08   -.78188E-03
   9  norm          1.4205        2.3626        .15525E-06   -.58623E-03
  10  norm          .10000E-03    3.0920       -.60015E-07** at limit **
  11  norm          31.434        8.0824        .21503E-07    .44949E-04
  12  norm          2.6779        3.0347        .43672E-07   -.24520E-03
  13  Prefactor     .10000E-03    11.473        .10064E-05** at limit **
  14  Prefactor     9.7458        4.0051       -.23844E-06   -.39828E-03
  15  Prefactor     4.5884        23.615       -.10979E-05   -.34866E-04
  16  Prefactor     3.6465        3.4439       -.59053E-07   -.22546E-03
  17  norm          .27436        1.9673        .17932E-05   -.12603E-02
  18  Normalizat    1.0500        .21620        .95134E-06    .19751E-04
  19  Prefactor     1.1511        .10553       -.26588E-06    .12948E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.30654
  norm       = 0.000100003
  Prefactor  = 0.000100002
  Prefactor  = 14.9714
  norm       = 0.0001
  Prefactor  = 29.0154
  Prefactor  = 0.0001
  norm       = 0.207204
  norm       = 1.42049
  norm       = 0.0001
  norm       = 31.4345
  norm       = 2.67788
  Prefactor  = 0.0001
  Prefactor  = 9.74575
  Prefactor  = 4.58843
  Prefactor  = 3.64648
  norm       = 0.274359
  Normalizat = 1.04997
  Prefactor  = 1.15106
 **********
 **   18 **HESSE 
 **********

 FCN=   11047.95     FROM HESSE     STATUS=OK           270 CALLS     1931 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.3065        18.535        .13910E-03   -1.5131    
   2  norm          .10000E-03    14.094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    15.104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     14.971        25.248        .10348E-03   -1.4934    
   5  norm          .10000E-03    9.4579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     29.015        18.297        .74375E-04   -1.4630    
   7  Prefactor     .10000E-03    75.361        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .20720        .13556        .31175E-03   -1.5617    
   9  norm          1.4205        2.3753        .19337E-03   -1.5470    
  10  norm          .10000E-03    3.1142        .18050E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          31.434        8.0806        .71466E-04   -1.4586    
  12  norm          2.6779        3.0182        .18680E-03   -1.5381    
  13  Prefactor     .10000E-03    11.521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.7458        4.0165        .12836E-03   -1.5084    
  15  Prefactor     4.5884        23.571        .18792E-03   -1.5280    
  16  Prefactor     3.6465        3.4371        .18202E-03   -1.5326    
  17  norm          .27436        3.2062        .36036E-03   -1.5603    
  18  Normalizat    1.0500        .24350        .40051E-03   -.91375    
  19  Prefactor     1.1511        .12027        .19500E-03   -.87851    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.81096e-09
Minuit parameter uncertainties:
  1  18.5481
  2  0.00040352
  3  0.000335091
  4  25.2662
  5  3.49176e-06
  6  18.3008
  7  0.000142226
  8  0.135558
  9  2.37548
  10  3.4637e-06
  11  8.0809
  12  3.01836
  13  8.7592e-05
  14  4.01658
  15  20.8123
  16  3.43731
  17  1.87557
  18  0.243755
  19  0.120295
Done.

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

Extracting fit parameters...

4FGL J1505.0+0326
   Spectrum: LogParabola
225         norm:  1.420e+00  2.375e+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.151e+00  1.203e-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.050e+00  2.438e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/12239/likelihoodResults_353116801_353376001_4FGL_J1505.0+0326_daily_bin439.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) = 11047.6018417
delta logL = 0.348260609202

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11047.5946045
delta logL = 0.355497802888

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1803       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.5895       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0008       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1662       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11047.59     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      251 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1789        2.8620        .42084E-04    .61809E-03
   2  alpha         3.5903        1.8616        .37557E-01    .21962E-04
   3  Normalizat    1.0008        .24245        .40918E-03    .49522E-03
   4  Prefactor     1.1662        .12013        .19388E-03    .11113E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 1.17894
  alpha      = 3.59029
  Normalizat = 1.0008
  Prefactor  = 1.16624
 **********
 **   18 **HESSE 
 **********

 FCN=   11047.59     FROM HESSE     STATUS=OK            25 CALLS      276 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1789        1.9876        .16834E-05   -1.5491    
   2  alpha         3.5903        1.4056        .15023E-02    .45128    
   3  Normalizat    1.0008        .24279        .16367E-04   -.93004    
   4  Prefactor     1.1662        .11982        .38775E-04   -.87377    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.52843e-10
Minuit parameter uncertainties:
  1  1.9877
  2  1.51821
  3  0.243054
  4  0.11985
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/12239': 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) = 11047.5946042
delta logL = 0.355498052297

Extracting fit parameters...

4FGL J1505.0+0326
   Spectrum: LogParabola
225         norm:  1.179e+00  1.988e+00  1.000e-04  1.000e+04 ( 1.000e-11)
226        alpha:  3.590e+00  1.518e+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.166e+00  1.199e-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.001e+00  2.431e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.30
Ra Dec: 226.273 3.447
Photon Index (Free Index): 3.59 +/- 1.52
Photon Flux (Free Index): 6.71e-08 +/- 7.00e-08
Energy Flux (Free Index): 1.11e-05 +/- 1.15e-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/12239/cmap_HighResolution_353116801_353376001_4FGL_J1505.0+0326_daily_bin439.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.57e-05', comment='SUCCESS', energy_flux2='1.11e-05', dlogl='3.55e-01', photon_flux2='6.71e-08', job_status='DONE', time_completed='2021-09-10 22:15:43.400463', photon_index_error2='1.52', photon_index2='3.59', ts='0.45', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', photon_flux_upper_limit='1.32e-07', energy_flux_error2='1.15e-05', EG='1.05', time_epoch_completed='1631337343.4', return_code='0', job_id='12239', GAL2='1.17', EG2='1.00', return_code2='0', photon_flux_error2='7.00e-08', ts2='1.30', photon_index='2.49' WHERE bin_id='439' AND source_name='4FGL J1505.0+0326' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 22:15:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 12239: <4FGL_J1505.0+0326_daily_bin439> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1505.0+0326_daily_bin439 226.273 3.4472 353116801 353376001 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 :                                   715.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             317.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   862 sec.
    Turnaround time :                            864 sec.

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

