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


Performing analysis on: 4FGL_J1505.0+0326_daily_bin364
RA = 226.273, Dec = 3.4472
tmin = 333676801, tmax = 333936001
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='10931', job_status='RUN', time_executed='2021-09-10 21:59:05.519635', time_epoch_executed='1631336345.52' WHERE source_name='4FGL J1505.0+0326' and cadence='daily' and bin_id='364'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/10931

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/10931/ft1_4FGL_J1505.0+0326_daily_bin364.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/10931/ft2_4FGL_J1505.0+0326_daily_bin364.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/10931/ft1_4FGL_J1505.0+0326_daily_bin364.fits outfile=/scratch/kocevski/10931/ft1_filteredMKT_4FGL_J1505.0+0326_daily_bin364.fits ra=226.273 dec=3.4472 rad=12.0 tmin=333676801.0 tmax=333936001.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.82
user 3.56
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/10931/ft1_filtered_4FGL_J1505.0+0326_daily_bin364.fits evtable="EVENTS" scfile=/scratch/kocevski/10931/ft2_4FGL_J1505.0+0326_daily_bin364.fits sctable="SC_DATA" expcube=/scratch/kocevski/10931/ltcube_333676801_333936001_4FGL_J1505.0+0326_daily_bin364.fits outfile=/scratch/kocevski/10931/expmap_333676801_333936001_4FGL_J1505.0+0326_daily_bin364.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/10931/ltcube_333676801_333936001_4FGL_J1505.0+0326_daily_bin364.fits
.....................!
real 190.34
user 185.37
sys 4.63

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/10931/ft1_filtered_4FGL_J1505.0+0326_daily_bin364.fits scfile=/scratch/kocevski/10931/ft2_4FGL_J1505.0+0326_daily_bin364.fits outfile=/scratch/kocevski/10931/cmap_333676801_333936001_4FGL_J1505.0+0326_daily_bin364.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/10931/ft1_filtered_4FGL_J1505.0+0326_daily_bin364.fits scfile=/scratch/kocevski/10931/ft2_4FGL_J1505.0+0326_daily_bin364.fits outfile=/scratch/kocevski/10931/cmap_HighResolution_333676801_333936001_4FGL_J1505.0+0326_daily_bin364.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=226.273 yref=3.4472 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11201E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    15.870       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .37562E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10078E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10646E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.932       1.0000         .10000E-03   10000.    
     8 'norm      '    .32613       1.0000         .10000E-03   10000.    
     9 'norm      '    2.6848       1.0000         .10000E-03   10000.    
    10 'norm      '    4.4549       1.0000         .10000E-03   10000.    
    11 'norm      '    8.1510       1.0000         .10000E-03   10000.    
    12 'norm      '    .23905E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11662       1.0000         .10000E-03   10000.    
    17 'norm      '    2.7887       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.4147       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .97707       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=   9754.753     FROM MIGRAD    STATUS=CONVERGED    407 CALLS     1902 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.8807        .25565E-05** at limit **
   2  norm          15.853        16.287        .40454E-06    .79830E-04
   3  Prefactor     .10000E-03    372.44       -.17548E-05** at limit **
   4  Prefactor     .10000E-03    10.805       -.18513E-05** at limit **
   5  norm          .10000E-03    5.7657       -.20653E-06** at limit **
   6  Prefactor     .10000E-03    9.6538        .29171E-06** at limit **
   7  Prefactor     16.948        16.236       -.69831E-07   -.54026E-04
   8  norm          .32618        .15845        .14950E-07    .88764E-04
   9  norm          2.6872        2.7085        .27743E-06   -.26843E-03
  10  norm          4.4553        6.5175        .13793E-06   -.37059E-04
  11  norm          8.1515        4.2108        .10265E-05   -.11709E-02
  12  norm          .10000E-03    2.3793        .17560E-06** at limit **
  13  Prefactor     .10000E-03    9.1137       -.14239E-05** at limit **
  14  Prefactor     .10000E-03    1.1604       -.82419E-08** at limit **
  15  Prefactor     .10000E-03    8.1708        .32041E-06** at limit **
  16  Prefactor     .11660        1.7776        .59639E-07   -.22240E-03
  17  norm          2.7905        3.9335        .33098E-06   -.17779E-03
  18  Normalizat    1.4144        .20447       -.60214E-06   -.75181E-04
  19  Prefactor     .97708        .99147E-01   -.18915E-06   -.13718E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  norm       = 15.8527
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.9478
  norm       = 0.326179
  norm       = 2.68716
  norm       = 4.45526
  norm       = 8.15147
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.116602
  norm       = 2.79047
  Normalizat = 1.41435
  Prefactor  = 0.977082
 **********
 **   18 **HESSE 
 **********

 FCN=   9754.753     FROM HESSE     STATUS=OK           268 CALLS     2170 TOTAL
                     EDM=   .93E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          15.853        16.313        .10054E-03   -1.4911    
   3  Prefactor     .10000E-03    383.61        .39143E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    11.286        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    5.7755        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.6822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     16.948        16.253        .97335E-04   -1.4884    
   8  norm          .32618        .15564        .26282E-04   -1.5594    
   9  norm          2.6872        2.6521        .14856E-03   -1.5380    
  10  norm          4.4553        6.5090        .19078E-03   -1.5286    
  11  norm          8.1515        4.4445        .70215E-03   -1.5137    
  12  norm          .10000E-03    5.6862        .28747E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    9.3997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.1730        .10387E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.1929        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .11660        7.8965        .25486E-02   -1.5640    
  17  norm          2.7905        3.9241        .22466E-03   -1.5374    
  18  Normalizat    1.4144        .23853        .33715E-03   -.80214    
  19  Prefactor     .97708        .11615        .19480E-03   -.93497    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.25751e-08
Minuit parameter uncertainties:
  1  0.000359757
  2  16.3177
  3  0.000987609
  4  0.000265032
  5  1.97885e-05
  6  4.1514e-05
  7  16.2568
  8  0.155639
  9  2.6522
  10  6.51002
  11  4.44471
  12  8.1855e-05
  13  0.000187566
  14  5.31125e-07
  15  4.10909e-05
  16  1.91855
  17  3.92446
  18  0.238716
  19  0.116178
Done.

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

Extracting fit parameters...

4FGL J1505.0+0326
   Spectrum: LogParabola
225         norm:  2.687e+00  2.652e+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:  9.771e-01  1.162e-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.414e+00  2.387e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.26
Ra Dec: 226.273 3.447
Photon Index (Fixed Index): 2.49 +/- 0.00
Photon Flux (Fixed Index): 5.67e-08 +/- 5.59e-08
Energy Flux (Fixed Index): 1.53e-05 +/- 1.51e-05

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

Saving results to:
/scratch/kocevski/10931/likelihoodResults_333676801_333936001_4FGL_J1505.0+0326_daily_bin364.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) = 9753.87421427
delta logL = 0.878892686484

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9753.78829263
delta logL = 0.964814327162

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .47732       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3090       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0161       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=   9753.788     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      365 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .47730        .43393        .40284E-03    .11977E-02
   2  alpha         5.0000        3.5450        .50000    ** at limit **
   3  Normalizat    1.3091        .24947        .34816E-03   -.12539E-03
   4  Prefactor     1.0161        .11840        .19147E-03   -.24985E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.477301
  alpha      = 5
  Normalizat = 1.3091
  Prefactor  = 1.01606
 **********
 **   18 **HESSE 
 **********

 FCN=   9753.788     FROM HESSE     STATUS=OK            31 CALLS      396 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .47730        .40494        .16114E-04   -1.5570    
   2  alpha         5.0000        3.4314        .50000        1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.3091        .25010        .13926E-04   -.83295    
   4  Prefactor     1.0161        .11858        .38295E-04   -.92196    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.48259e-10
Minuit parameter uncertainties:
  1  0.404944
  2  0.000447793
  3  0.250327
  4  0.118607
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/10931': 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) = 9753.78829235
delta logL = 0.964814603038

Extracting fit parameters...

4FGL J1505.0+0326
   Spectrum: LogParabola
225         norm:  4.773e-01  4.049e-01  1.000e-04  1.000e+04 ( 1.000e-11)
226        alpha:  5.000e+00  4.478e-04  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.016e+00  1.186e-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.309e+00  2.503e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.49
Ra Dec: 226.273 3.447
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.28e-07 +/- 1.08e-07
Energy Flux (Free Index): 1.73e-05 +/- 1.47e-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/10931/cmap_HighResolution_333676801_333936001_4FGL_J1505.0+0326_daily_bin364.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.45e-05', comment='SUCCESS', photon_flux='5.67e-08', energy_flux2='1.73e-05', photon_flux_error='5.59e-08', dlogl='9.65e-01', energy_flux='1.53e-05', photon_flux2='1.28e-07', job_status='DONE', time_completed='2021-09-10 22:10:22.906808', photon_index_error2='0.00', photon_index2='5.00', ts='1.26', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.65e-07', energy_flux_error2='1.47e-05', EG='1.41', time_epoch_completed='1631337022.91', return_code='0', job_id='10931', GAL2='1.02', EG2='1.31', return_code2='0', energy_flux_error='1.51e-05', photon_flux_error2='1.08e-07', ts2='3.49', photon_index='2.49' WHERE bin_id='364' AND source_name='4FGL J1505.0+0326' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 22:10:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0139>
Subject: Job 10931: <4FGL_J1505.0+0326_daily_bin364> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1505.0+0326_daily_bin364 226.273 3.4472 333676801 333936001 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 :                                   674.29 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             276.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   842 sec.
    Turnaround time :                            843 sec.

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

