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


Performing analysis on: 4FGL_J1505.0+0326_daily_bin510
RA = 226.273, Dec = 3.4472
tmin = 371520001, tmax = 371779201
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='12352', job_status='RUN', time_executed='2021-09-10 22:05:29.123558', time_epoch_executed='1631336729.12' WHERE source_name='4FGL J1505.0+0326' and cadence='daily' and bin_id='510'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/12352

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/12352/ft1_4FGL_J1505.0+0326_daily_bin510.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/12352/ft2_4FGL_J1505.0+0326_daily_bin510.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/12352/ft1_4FGL_J1505.0+0326_daily_bin510.fits outfile=/scratch/kocevski/12352/ft1_filteredMKT_4FGL_J1505.0+0326_daily_bin510.fits ra=226.273 dec=3.4472 rad=12.0 tmin=371520001.0 tmax=371779201.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 4.50
user 4.23
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/12352/ft1_filtered_4FGL_J1505.0+0326_daily_bin510.fits evtable="EVENTS" scfile=/scratch/kocevski/12352/ft2_4FGL_J1505.0+0326_daily_bin510.fits sctable="SC_DATA" expcube=/scratch/kocevski/12352/ltcube_371520001_371779201_4FGL_J1505.0+0326_daily_bin510.fits outfile=/scratch/kocevski/12352/expmap_371520001_371779201_4FGL_J1505.0+0326_daily_bin510.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/12352/ltcube_371520001_371779201_4FGL_J1505.0+0326_daily_bin510.fits
.....................!
real 192.54
user 187.00
sys 5.07

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/12352/ft1_filtered_4FGL_J1505.0+0326_daily_bin510.fits scfile=/scratch/kocevski/12352/ft2_4FGL_J1505.0+0326_daily_bin510.fits outfile=/scratch/kocevski/12352/cmap_371520001_371779201_4FGL_J1505.0+0326_daily_bin510.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/12352/ft1_filtered_4FGL_J1505.0+0326_daily_bin510.fits scfile=/scratch/kocevski/12352/ft2_4FGL_J1505.0+0326_daily_bin510.fits outfile=/scratch/kocevski/12352/cmap_HighResolution_371520001_371779201_4FGL_J1505.0+0326_daily_bin510.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/12352/ft1_filtered_4FGL_J1505.0+0326_daily_bin510.fits evtable="EVENTS" scfile=/scratch/kocevski/12352/ft2_4FGL_J1505.0+0326_daily_bin510.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/12352/Model_4FGL_J1505.0+0326_daily_bin510.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/12352/ft1_filtered_4FGL_J1505.0+0326_daily_bin510.fits.....................!
real 65.58
user 64.31
sys 1.10

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    13.863       1.0000         .10000E-03   10000.    
     3 'Prefactor '    35.368       1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.681       1.0000         .10000E-03   10000.    
     5 'norm      '    .12284E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .33019       1.0000         .10000E-03   10000.    
     9 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.4292       1.0000         .10000E-03   10000.    
    12 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .55654E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.9953       1.0000         .10000E-03   10000.    
    17 'norm      '    8.0537       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2939       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0013       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=   8255.721     FROM MIGRAD    STATUS=CONVERGED    397 CALLS     1877 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.0610        .11082E-07** at limit **
   2  norm          13.862        13.370        .59450E-08   -.20289E-05
   3  Prefactor     35.362        37.227       -.18422E-06   -.64302E-04
   4  Prefactor     21.680        22.945        .13471E-06    .95725E-05
   5  norm          .10000E-03    9.0737       -.94075E-08** at limit **
   6  Prefactor     .10001E-03    30.273        .18903E-05** at limit **
   7  Prefactor     .10000E-03    22.668       -.10383E-05** at limit **
   8  norm          .33012        .17848        .35719E-07    .11055E-02
   9  norm          .10000E-03    1.3305        .64215E-07** at limit **
  10  norm          .10000E-03    4.1076        .22132E-07** at limit **
  11  norm          1.4305        3.7306        .17863E-05    .54451E-03
  12  norm          .10000E-03    1.6215        .30493E-07** at limit **
  13  Prefactor     .10000E-03    12.746        .43896E-07** at limit **
  14  Prefactor     .10181E-03    4.5091       -.17625E-05** at limit **
  15  Prefactor     .10000E-03    12.605        .17768E-07** at limit **
  16  Prefactor     1.9969        4.4876        .15462E-05    .59467E-03
  17  norm          8.0539        5.5943       -.89893E-07    .68127E-04
  18  Normalizat    1.2943        .21451        .53819E-07    .19276E-03
  19  Prefactor     1.0011        .10672       -.40451E-06    .41018E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 13.862
  Prefactor  = 35.3624
  Prefactor  = 21.6803
  norm       = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.000100002
  norm       = 0.330123
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.43046
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000101815
  Prefactor  = 0.0001
  Prefactor  = 1.99688
  norm       = 8.05391
  Normalizat = 1.29434
  Prefactor  = 1.00111
 **********
 **   18 **HESSE 
 **********

 FCN=   8255.721     FROM HESSE     STATUS=OK           264 CALLS     2141 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.0616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          13.862        13.371        .10758E-03   -1.4963    
   3  Prefactor     35.362        37.266        .67386E-04   -1.4518    
   4  Prefactor     21.680        22.937        .86023E-04   -1.4776    
   5  norm          .10000E-03    9.0780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    30.783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    23.033        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .33012        .17513        .26971E-04   -1.5593    
   9  norm          .10000E-03    1.3696        .20443E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    4.1333        .17983E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.4305        3.7356        .27291E-03   -1.5469    
  12  norm          .10000E-03    1.6343        .11297E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    12.751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10181E-03    53.980        .25906E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    12.614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.9969        4.4903        .27500E-03   -1.5425    
  17  norm          8.0539        5.5826        .14128E-03   -1.5140    
  18  Normalizat    1.2943        .25047        .33795E-03   -.83736    
  19  Prefactor     1.0011        .12460        .18765E-03   -.92692    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.16883e-08
Minuit parameter uncertainties:
  1  1.98774e-06
  2  13.3741
  3  37.2901
  4  22.946
  5  9.9469e-06
  6  0.000822887
  7  0.000407653
  8  0.17513
  9  3.82118e-06
  10  1.41341e-06
  11  3.73621
  12  2.18343e-06
  13  1.47734e-05
  14  0.0198114
  15  2.77625e-05
  16  4.49109
  17  5.58301
  18  0.2507
  19  0.124636
Done.

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

Extracting fit parameters...

4FGL J1505.0+0326
   Spectrum: LogParabola
225         norm:  1.000e-04  3.821e-06  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.001e+00  1.246e-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.294e+00  2.507e-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: 9.31e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.51e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/12352/likelihoodResults_371520001_371779201_4FGL_J1505.0+0326_daily_bin510.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): 102
logL (Free Index) = 8255.72469934
delta logL = -0.00348145990574

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8255.19325974
delta logL = 0.527958148532

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .24194       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2134       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0248       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=   8255.193     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      325 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .24204        .26545        .47377E-03    .77171E-03
   2  alpha         5.0000        3.1223        .85321E-01** at limit **
   3  Normalizat    1.2133        .25791        .34751E-03    .23567E-03
   4  Prefactor     1.0248        .12509        .18572E-03    .48419E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.242044
  alpha      = 5
  Normalizat = 1.21333
  Prefactor  = 1.02479
 **********
 **   18 **HESSE 
 **********

 FCN=   8255.193     FROM HESSE     STATUS=OK            25 CALLS      350 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .24204        .26394        .18951E-04   -1.5610    
   2  alpha         5.0000        3.1215        .17064E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.2133        .25788        .13901E-04   -.86192    
   4  Prefactor     1.0248        .12516        .37144E-04   -.91908    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19045e-10
Minuit parameter uncertainties:
  1  0.263938
  2  1.07939e-05
  3  0.25815
  4  0.125191
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/12352': 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) = 8255.19325952
delta logL = 0.527958360643

Extracting fit parameters...

4FGL J1505.0+0326
   Spectrum: LogParabola
225         norm:  2.420e-01  2.639e-01  1.000e-04  1.000e+04 ( 1.000e-11)
226        alpha:  5.000e+00  1.079e-05  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.025e+00  1.252e-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.213e+00  2.582e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.20
Ra Dec: 226.273 3.447
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 6.51e-08 +/- 7.06e-08
Energy Flux (Free Index): 8.78e-06 +/- 9.55e-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/12352/cmap_HighResolution_371520001_371779201_4FGL_J1505.0+0326_daily_bin510.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.51e-05', comment='SUCCESS', energy_flux2='8.78e-06', dlogl='5.28e-01', photon_flux2='6.51e-08', job_status='DONE', time_completed='2021-09-10 22:15:54.075584', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='9.31e-08', energy_flux_error2='9.55e-06', EG='1.29', time_epoch_completed='1631337354.08', return_code='0', job_id='12352', GAL2='1.02', EG2='1.21', return_code2='0', photon_flux_error2='7.06e-08', ts2='1.20', photon_index='2.49' WHERE bin_id='510' AND source_name='4FGL J1505.0+0326' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 22:15:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 12352: <4FGL_J1505.0+0326_daily_bin510> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1505.0+0326_daily_bin510 226.273 3.4472 371520001 371779201 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 :                                   622.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             263.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   864 sec.
    Turnaround time :                            866 sec.

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

