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


Performing analysis on: 4FGL_J1505.0+0326_daily_bin202
RA = 226.273, Dec = 3.4472
tmin = 291686401, tmax = 291945601
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='10699', job_status='RUN', time_executed='2021-09-10 21:58:25.193557', time_epoch_executed='1631336305.19' WHERE source_name='4FGL J1505.0+0326' and cadence='daily' and bin_id='202'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/10699

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/10699/ft1_4FGL_J1505.0+0326_daily_bin202.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/10699/ft2_4FGL_J1505.0+0326_daily_bin202.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/10699/ft1_4FGL_J1505.0+0326_daily_bin202.fits outfile=/scratch/kocevski/10699/ft1_filteredMKT_4FGL_J1505.0+0326_daily_bin202.fits ra=226.273 dec=3.4472 rad=12.0 tmin=291686401.0 tmax=291945601.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.51
user 3.31
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/10699/ft2_4FGL_J1505.0+0326_daily_bin202.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/10699/ft1_filteredMKT_4FGL_J1505.0+0326_daily_bin202.fits evtable="EVENTS" outfile="/scratch/kocevski/10699/ft1_filtered_4FGL_J1505.0+0326_daily_bin202.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/10699/ft1_filtered_4FGL_J1505.0+0326_daily_bin202.fits" evtable="EVENTS" scfile=/scratch/kocevski/10699/ft2_4FGL_J1505.0+0326_daily_bin202.fits sctable="SC_DATA" outfile=/scratch/kocevski/10699/ltcube_291686401_291945601_4FGL_J1505.0+0326_daily_bin202.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/10699/ft2_4FGL_J1505.0+0326_daily_bin202.fits
.....................!
real 11.83
user 11.50
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/10699/ft1_filtered_4FGL_J1505.0+0326_daily_bin202.fits evtable="EVENTS" scfile=/scratch/kocevski/10699/ft2_4FGL_J1505.0+0326_daily_bin202.fits sctable="SC_DATA" expcube=/scratch/kocevski/10699/ltcube_291686401_291945601_4FGL_J1505.0+0326_daily_bin202.fits outfile=/scratch/kocevski/10699/expmap_291686401_291945601_4FGL_J1505.0+0326_daily_bin202.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/10699/ltcube_291686401_291945601_4FGL_J1505.0+0326_daily_bin202.fits
.....................!
real 190.42
user 185.68
sys 4.29

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/10699/ft1_filtered_4FGL_J1505.0+0326_daily_bin202.fits scfile=/scratch/kocevski/10699/ft2_4FGL_J1505.0+0326_daily_bin202.fits outfile=/scratch/kocevski/10699/cmap_291686401_291945601_4FGL_J1505.0+0326_daily_bin202.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.58
user 0.37
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    57.939       1.0000         .10000E-03   10000.    
     2 'norm      '    2.6962       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10971E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .33094       1.0000         .10000E-03   10000.    
     9 'norm      '    .15983E-01   1.0000         .10000E-03   10000.    
    10 'norm      '    .12448E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    6.1809       1.0000         .10000E-03   10000.    
    12 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.3457       1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.4146       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10078E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1457       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .96137       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=   8059.000     FROM MIGRAD    STATUS=CONVERGED    427 CALLS     1959 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     57.937        42.649       -.57111E-06   -.11640E-03
   2  norm          2.6995        55.226       -.62652E-05   -.13185E-03
   3  Prefactor     .10000E-03    19.610        .16555E-07** at limit **
   4  Prefactor     .10000E-03    8.6094       -.53375E-06** at limit **
   5  norm          .10000E-03    4.5702        .91444E-08** at limit **
   6  Prefactor     .10000E-03    9.6523        .21067E-06** at limit **
   7  Prefactor     .10000E-03    5.8649        .43740E-07** at limit **
   8  norm          .33103        .17115        .11274E-07    .16948E-03
   9  norm          .49434E-01    .94778        .19723E-08    .10493E-03
  10  norm          .10000E-03    3.1311       -.33599E-06** at limit **
  11  norm          6.1822        4.6137       -.27111E-07   -.18897E-03
  12  norm          .10000E-03    1.9040       -.17285E-08** at limit **
  13  Prefactor     7.2574        49.983       -.30932E-05   -.51780E-04
  14  Prefactor     9.4180        5.4140        .15351E-05   -.76161E-03
  15  Prefactor     .10000E-03    7.9398        .58446E-06** at limit **
  16  Prefactor     .10000E-03    1.3359       -.43401E-07** at limit **
  17  norm          .10000E-03    1.7092       -.21088E-07** at limit **
  18  Normalizat    1.1452        .21717       -.34142E-06    .19690E-04
  19  Prefactor     .96140        .10374       -.21054E-06    .56144E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 57.9372
  norm       = 2.69951
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.331034
  norm       = 0.0494342
  norm       = 0.000100001
  norm       = 6.18224
  norm       = 0.0001
  Prefactor  = 7.2574
  Prefactor  = 9.41803
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.14516
  Prefactor  = 0.961402
 **********
 **   18 **HESSE 
 **********

 FCN=   8059.000     FROM HESSE     STATUS=OK           268 CALLS     2227 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     57.937        42.696        .52705E-04   -1.4184    
   2  norm          2.6995        61.563        .24811E-03   -1.5379    
   3  Prefactor     .10000E-03    19.618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.6403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    4.5722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.6825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.8710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .33103        .16791        .25494E-04   -1.5593    
   9  norm          .49434E-01    30.014        .16293E-02   -1.5664    
  10  norm          .10000E-03    7.2554        .30784E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.1822        4.6286        .16075E-03   -1.5211    
  12  norm          .10000E-03    1.9231        .12088E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.2574        50.961        .14799E-03   -1.5169    
  14  Prefactor     9.4180        5.5922        .65306E-03   -1.5094    
  15  Prefactor     .10000E-03    7.9788        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.3478        .10133E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.2060        .22863E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.1452        .25973        .34606E-03   -.88315    
  19  Prefactor     .96140        .12257        .18396E-03   -.94027    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04131e-09
Minuit parameter uncertainties:
  1  42.7185
  2  25.8125
  3  8.87745e-06
  4  5.99335e-05
  5  2.49179e-06
  6  2.19667e-05
  7  1.98618e-06
  8  0.16791
  9  2.43493
  10  0.000125649
  11  4.62889
  12  9.69625e-07
  13  38.5093
  14  5.59251
  15  6.44241e-05
  16  3.58873e-06
  17  1.45625e-05
  18  0.260023
  19  0.122606
Done.

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

Extracting fit parameters...

4FGL J1505.0+0326
   Spectrum: LogParabola
225         norm:  4.943e-02  2.435e+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.614e-01  1.226e-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.145e+00  2.600e-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: 1.17e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.17e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/10699/likelihoodResults_291686401_291945601_4FGL_J1505.0+0326_daily_bin202.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) = 8057.65981102
delta logL = 1.33980375383

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8057.62677539
delta logL = 1.37283938544

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .45159       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0011       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0025       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5080E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8057.627     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      285 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .45153        8.6925        .85976E-02   -.19252E-03
   2  alpha         5.0000        2.5039        .46268    ** at limit **
   3  Normalizat    1.0012        .12510        .82913E-01    .57116E-06
   4  Prefactor     1.0025        .54675E-01    .44822E-01    .19154E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.451526
  alpha      = 5
  Normalizat = 1.00116
  Prefactor  = 1.00248
 **********
 **   18 **HESSE 
 **********

 FCN=   8057.627     FROM HESSE     STATUS=OK            35 CALLS      320 TOTAL
                     EDM=   .98E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .45153        .39450        .39201E-03   -1.5574    
   2  alpha         5.0000        3.3251        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.0012        .25843        .36704E-03   -.92992    
   4  Prefactor     1.0025        .12343        .18051E-03   -.92647    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.79504e-11
Minuit parameter uncertainties:
  1  0.394498
  2  8.1747e-06
  3  0.258755
  4  0.123469
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/10699': 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) = 8057.62677308
delta logL = 1.37284169

Extracting fit parameters...

4FGL J1505.0+0326
   Spectrum: LogParabola
225         norm:  4.515e-01  3.945e-01  1.000e-04  1.000e+04 ( 1.000e-11)
226        alpha:  5.000e+00  8.175e-06  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.002e+00  1.235e-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.588e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.06
Ra Dec: 226.273 3.447
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.21e-07 +/- 1.06e-07
Energy Flux (Free Index): 1.64e-05 +/- 1.43e-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/10699/cmap_HighResolution_291686401_291945601_4FGL_J1505.0+0326_daily_bin202.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.17e-05', comment='SUCCESS', energy_flux2='1.64e-05', dlogl='1.37e+00', photon_flux2='1.21e-07', job_status='DONE', time_completed='2021-09-10 22:08:34.799889', photon_index_error2='0.00', photon_index2='5.00', ts='0.00', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='1.17e-07', energy_flux_error2='1.43e-05', EG='1.15', time_epoch_completed='1631336914.8', return_code='0', job_id='10699', GAL2='1.00', EG2='1.00', return_code2='0', photon_flux_error2='1.06e-07', ts2='3.06', photon_index='2.49' WHERE bin_id='202' AND source_name='4FGL J1505.0+0326' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 22:08:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 10699: <4FGL_J1505.0+0326_daily_bin202> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1505.0+0326_daily_bin202 226.273 3.4472 291686401 291945601 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 :                                   608.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             279.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   748 sec.
    Turnaround time :                            750 sec.

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

