/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 146 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 = 7487
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1504.4+1029_daily_bin37
RA = 226.103, Dec = 10.4978
tmin = 248918401, tmax = 249177601
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='994660', job_status='RUN', time_executed='2021-09-10 21:08:33.297509', time_epoch_executed='1631333313.3' WHERE source_name='4FGL J1504.4+1029' and cadence='daily' and bin_id='37'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/994660

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/994660/ft1_4FGL_J1504.4+1029_daily_bin37.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/994660/ft2_4FGL_J1504.4+1029_daily_bin37.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/994660/ft1_4FGL_J1504.4+1029_daily_bin37.fits outfile=/scratch/kocevski/994660/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin37.fits ra=226.103 dec=10.4978 rad=12.0 tmin=248918401.0 tmax=249177601.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 1.95
user 1.75
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/994660/ft2_4FGL_J1504.4+1029_daily_bin37.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/994660/ft2_4FGL_J1504.4+1029_daily_bin37.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/994660/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin37.fits evtable="EVENTS" outfile="/scratch/kocevski/994660/ft1_filtered_4FGL_J1504.4+1029_daily_bin37.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.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/994660/ft1_filtered_4FGL_J1504.4+1029_daily_bin37.fits" evtable="EVENTS" scfile=/scratch/kocevski/994660/ft2_4FGL_J1504.4+1029_daily_bin37.fits sctable="SC_DATA" outfile=/scratch/kocevski/994660/ltcube_248918401_249177601_4FGL_J1504.4+1029_daily_bin37.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/994660/ft2_4FGL_J1504.4+1029_daily_bin37.fits
.....................!
real 12.65
user 12.26
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/994660/ft1_filtered_4FGL_J1504.4+1029_daily_bin37.fits evtable="EVENTS" scfile=/scratch/kocevski/994660/ft2_4FGL_J1504.4+1029_daily_bin37.fits sctable="SC_DATA" expcube=/scratch/kocevski/994660/ltcube_248918401_249177601_4FGL_J1504.4+1029_daily_bin37.fits outfile=/scratch/kocevski/994660/expmap_248918401_249177601_4FGL_J1504.4+1029_daily_bin37.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/994660/ltcube_248918401_249177601_4FGL_J1504.4+1029_daily_bin37.fits
.....................!
real 192.99
user 187.28
sys 5.03

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 145 point sources and 0 extended sources

Setting source of interest to:
4FGL J1504.4+1029 @ 226.103 10.4978

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/994660/ft1_filtered_4FGL_J1504.4+1029_daily_bin37.fits scfile=/scratch/kocevski/994660/ft2_4FGL_J1504.4+1029_daily_bin37.fits outfile=/scratch/kocevski/994660/cmap_248918401_249177601_4FGL_J1504.4+1029_daily_bin37.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.103 yref=10.4978 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/994660/ft1_filtered_4FGL_J1504.4+1029_daily_bin37.fits scfile=/scratch/kocevski/994660/ft2_4FGL_J1504.4+1029_daily_bin37.fits outfile=/scratch/kocevski/994660/cmap_HighResolution_248918401_249177601_4FGL_J1504.4+1029_daily_bin37.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.103 yref=10.4978 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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/994660/ft1_filtered_4FGL_J1504.4+1029_daily_bin37.fits evtable="EVENTS" scfile=/scratch/kocevski/994660/ft2_4FGL_J1504.4+1029_daily_bin37.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/994660/Model_4FGL_J1504.4+1029_daily_bin37.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/994660/ft1_filtered_4FGL_J1504.4+1029_daily_bin37.fits.....................!
real 52.88
user 51.44
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/994660/ft1_filtered_4FGL_J1504.4+1029_daily_bin37.fits', '/scratch/kocevski/994660/ft2_4FGL_J1504.4+1029_daily_bin37.fits', expMap='/scratch/kocevski/994660/expmap_248918401_249177601_4FGL_J1504.4+1029_daily_bin37.fits', expCube='/scratch/kocevski/994660/ltcube_248918401_249177601_4FGL_J1504.4+1029_daily_bin37.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/994660/Model_4FGL_J1504.4+1029_daily_bin37.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1504.4+1029'

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  1.267e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-10)
201        alpha:  2.124e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
202         beta:  9.862e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
203           Eb:  5.027e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/994660/ft1_filtered_4FGL_J1504.4+1029_daily_bin37.fits
Spacecraft file(s): /scratch/kocevski/994660/ft2_4FGL_J1504.4+1029_daily_bin37.fits
Exposure map: /scratch/kocevski/994660/expmap_248918401_249177601_4FGL_J1504.4+1029_daily_bin37.fits
Exposure cube: /scratch/kocevski/994660/ltcube_248918401_249177601_4FGL_J1504.4+1029_daily_bin37.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/994660/Model_4FGL_J1504.4+1029_daily_bin37.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) = 6677.8712403

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    20.485       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10807E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .39750E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    46.906       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10314E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10186E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.3545       1.0000         .10000E-03   10000.    
    15 'norm      '    1.1086       1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10067E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.8944       1.0000         .10000E-03   10000.    
    19 'Prefactor '    37.774       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .32902E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    24.497       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .22743E-02   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .84628E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    43.295       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .85828       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .98938       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4720E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6677.864     FROM MIGRAD    STATUS=CONVERGED    712 CALLS     3587 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.976       -.19609E-05** at limit **
   2  norm          20.484        21.078       -.50013E-06    .92742E-05
   3  Prefactor     .10000E-03    3.7274       -.12762E-06** at limit **
   4  Prefactor     .10000E-03    35.822       -.76598E-05** at limit **
   5  norm          .10011E-03    2.1555        .15222E-06** at limit **
   6  Prefactor     .10000E-03    49.440       -.16935E-05** at limit **
   7  Prefactor     .10000E-03    15.933        .23469E-06** at limit **
   8  norm          46.905        19.601        .41965E-07    .17727E-04
   9  Prefactor     .10000E-03    26.416       -.15421E-05** at limit **
  10  Prefactor     .10000E-03    12.925       -.14951E-05** at limit **
  11  Prefactor     .10000E-03    9.6615       -.53220E-06** at limit **
  12  Prefactor     .10000E-03    7.5483        .22577E-06** at limit **
  13  Prefactor     .10000E-03    11.260        .63866E-06** at limit **
  14  norm          2.3545        .32805       -.20855E-07    .12589E-02
  15  norm          1.1094        1.9253       -.17456E-05    .87084E-04
  16  norm          .10000E-03    7.4237       -.56411E-06** at limit **
  17  norm          .10000E-03    17.968        .63098E-06** at limit **
  18  norm          1.8943        2.9918       -.52346E-06    .22313E-03
  19  Prefactor     37.770        38.927        .23981E-06    .14543E-04
  20  Prefactor     .10013E-03    38.061       -.31997E-05** at limit **
  21  Prefactor     24.529        35.167        .37959E-06   -.18142E-04
  22  Prefactor     .10000E-03    2.6274       -.14548E-06** at limit **
  23  Prefactor     .10000E-03    271.21        .16185E-05** at limit **
  24  Prefactor     .10000E-03    49.613       -.29558E-05** at limit **
  25  norm          .10738E-03    1.6181       -.67839E-06** at limit **
  26  Prefactor     43.299        55.130       -.53834E-06   -.51254E-05
  27  Normalizat    .85835        .22174        .62109E-07    .24440E-03
  28  Prefactor     .98918        .12829        .81656E-06    .23039E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 20.484
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100107
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 46.9052
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.3545
  norm       = 1.10938
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.89432
  Prefactor  = 37.77
  Prefactor  = 0.000100127
  Prefactor  = 24.5294
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000107378
  Prefactor  = 43.2988
  Normalizat = 0.858347
  Prefactor  = 0.989182
 **********
 **   18 **HESSE 
 **********

 FCN=   6677.864     FROM HESSE     STATUS=OK           537 CALLS     4124 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    25.158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          20.484        21.073        .88495E-04   -1.4802    
   3  Prefactor     .10000E-03    3.7403        .15402E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    35.667        .34800E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10011E-03    4.3545        .40446E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    49.618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    15.950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          46.905        19.593        .58545E-04   -1.4337    
   9  Prefactor     .10000E-03    26.628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    13.015        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    9.7306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.5565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    11.281        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.3545        .32859        .16632E-04   -1.5401    
  15  norm          1.1094        1.9219        .14277E-03   -1.5497    
  16  norm          .10000E-03    7.5313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    17.985        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.8943        2.9477        .16910E-03   -1.5433    
  19  Prefactor     37.770        38.918        .65211E-04   -1.4478    
  20  Prefactor     .10013E-03    34.591        .13495       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     24.529        35.189        .80934E-04   -1.4717    
  22  Prefactor     .10000E-03    2.6665        .12934E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    279.08        .40220E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    50.129        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10738E-03    2.3703        .36807E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     43.299        55.138        .60928E-04   -1.4391    
  27  Normalizat    .85835        .26245        .33984E-03   -.97940    
  28  Prefactor     .98918        .15343        .19010E-03   -.93091    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.12951e-10
Minuit parameter uncertainties:
  1  0.000146476
  2  21.0811
  3  2.24852e-06
  4  0.000196576
  5  0.00136669
  6  0.000202849
  7  4.46959e-05
  8  19.5955
  9  0.00010919
  10  8.38067e-05
  11  2.08311e-05
  12  1.95524e-05
  13  5.2081e-05
  14  0.328593
  15  1.92204
  16  1.31697e-05
  17  5.91282e-05
  18  2.94794
  19  38.9441
  20  0.00419031
  21  35.2191
  22  8.71173e-08
  23  0.000393625
  24  0.000290625
  25  0.00836387
  26  55.2029
  27  0.262844
  28  0.153493
Done.

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

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  2.355e+00  3.286e-01  1.000e-04  1.000e+04 ( 1.000e-10)
201        alpha:  2.124e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
202         beta:  9.862e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
203           Eb:  5.027e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
469    Prefactor:  9.892e-01  1.535e-01  0.000e+00  1.000e+01 ( 1.000e+00)
470        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
471        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
468   Normalization:  8.583e-01  2.628e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 192.49
Ra Dec: 226.103 10.498
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 5.73e-07 +/- 8.00e-08
Energy Flux (Fixed Index): 2.32e-04 +/- 3.24e-05

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) = 6677.86107757
delta logL = 0.00331065867795

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6677.86031305
delta logL = 0.00407517722306

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6677.860     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      199 TOTAL
                     EDM=   .27E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.3492        .36689        .37524E-02   -.21872E-03
   2  alpha         2.1377        .16076        .10188        .91771E-05
   3  Normalizat    .85357        .21526        .76957E-01    .18049E-04
   4  Prefactor     .99103        .12693        .46155E-01   -.23464E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 2.34923
  alpha      = 2.13768
  Normalizat = 0.853567
  Prefactor  = 0.99103
 **********
 **   18 **HESSE 
 **********

 FCN=   6677.860     FROM HESSE     STATUS=OK            31 CALLS      230 TOTAL
                     EDM=   .29E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.3492        .33265        .16583E-04   -1.5401    
   2  alpha         2.1377        .14722        .44691E-03   -.14544    
   3  Normalizat    .85357        .25957        .34063E-03   -.98111    
   4  Prefactor     .99103        .15292        .18993E-03   -.93029    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.92851e-13
Minuit parameter uncertainties:
  1  0.332647
  2  0.147309
  3  0.259953
  4  0.152988
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/994660': 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) = 6677.86031304
delta logL = 0.00407518729116

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  2.349e+00  3.326e-01  1.000e-04  1.000e+04 ( 1.000e-10)
201        alpha:  2.138e+00  1.473e-01  0.000e+00  5.000e+00 ( 1.000e+00)
202         beta:  9.862e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
203           Eb:  5.027e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
469    Prefactor:  9.910e-01  1.530e-01  0.000e+00  1.000e+01 ( 1.000e+00)
470        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
471        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
468   Normalization:  8.536e-01  2.600e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 191.69
Ra Dec: 226.103 10.498
Photon Index (Free Index): 2.14 +/- 0.15
Photon Flux (Free Index): 5.77e-07 +/- 9.31e-08
Energy Flux (Free Index): 2.30e-04 +/- 3.99e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/994660/cmap_HighResolution_248918401_249177601_4FGL_J1504.4+1029_daily_bin37.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.73e-07', energy_flux2='2.30e-04', photon_flux_error='8.00e-08', dlogl='4.08e-03', energy_flux='2.32e-04', photon_flux2='5.77e-07', job_status='DONE', time_completed='2021-09-10 21:19:06.407423', photon_index_error2='0.15', photon_index2='2.14', ts='192.49', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='3.99e-05', EG='0.86', time_epoch_completed='1631333946.41', return_code='0', job_id='994660', GAL2='0.99', EG2='0.85', return_code2='0', energy_flux_error='3.24e-05', photon_flux_error2='9.31e-08', ts2='191.69', photon_index='2.12' WHERE bin_id='37' AND source_name='4FGL J1504.4+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 21:19:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 994660: <4FGL_J1504.4+1029_daily_bin37> in cluster <slac> Done

Job <4FGL_J1504.4+1029_daily_bin37> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 10 21:05:57 2021
Job was executed on host(s) <bullet0044>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 21:05:59 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:05:59 2021
Terminated at Fri Sep 10 21:19:07 2021
Results reported at Fri Sep 10 21:19:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_daily_bin37 226.103 10.4978 248918401 249177601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1504.4+1029 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   631.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             299.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   787 sec.
    Turnaround time :                            790 sec.

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

