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


Performing analysis on: 4FGL_J1504.4+1029_daily_bin867
RA = 226.103, Dec = 10.4978
tmin = 464054401, tmax = 464313601
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='3662', job_status='RUN', time_executed='2021-09-10 21:36:21.298072', time_epoch_executed='1631334981.3' WHERE source_name='4FGL J1504.4+1029' and cadence='daily' and bin_id='867'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/3662

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/3662/ft1_4FGL_J1504.4+1029_daily_bin867.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/3662/ft2_4FGL_J1504.4+1029_daily_bin867.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/3662/ft1_4FGL_J1504.4+1029_daily_bin867.fits outfile=/scratch/kocevski/3662/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin867.fits ra=226.103 dec=10.4978 rad=12.0 tmin=464054401.0 tmax=464313601.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.44
user 3.21
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/3662/ft1_filtered_4FGL_J1504.4+1029_daily_bin867.fits" evtable="EVENTS" scfile=/scratch/kocevski/3662/ft2_4FGL_J1504.4+1029_daily_bin867.fits sctable="SC_DATA" outfile=/scratch/kocevski/3662/ltcube_464054401_464313601_4FGL_J1504.4+1029_daily_bin867.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/3662/ft2_4FGL_J1504.4+1029_daily_bin867.fits
.....................!
real 15.10
user 14.73
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/3662/ft1_filtered_4FGL_J1504.4+1029_daily_bin867.fits evtable="EVENTS" scfile=/scratch/kocevski/3662/ft2_4FGL_J1504.4+1029_daily_bin867.fits sctable="SC_DATA" expcube=/scratch/kocevski/3662/ltcube_464054401_464313601_4FGL_J1504.4+1029_daily_bin867.fits outfile=/scratch/kocevski/3662/expmap_464054401_464313601_4FGL_J1504.4+1029_daily_bin867.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/3662/ltcube_464054401_464313601_4FGL_J1504.4+1029_daily_bin867.fits
.....................!
real 191.41
user 185.91
sys 5.04

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/3662/ft1_filtered_4FGL_J1504.4+1029_daily_bin867.fits scfile=/scratch/kocevski/3662/ft2_4FGL_J1504.4+1029_daily_bin867.fits outfile=/scratch/kocevski/3662/cmap_464054401_464313601_4FGL_J1504.4+1029_daily_bin867.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.56
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/3662/ft1_filtered_4FGL_J1504.4+1029_daily_bin867.fits scfile=/scratch/kocevski/3662/ft2_4FGL_J1504.4+1029_daily_bin867.fits outfile=/scratch/kocevski/3662/cmap_HighResolution_464054401_464313601_4FGL_J1504.4+1029_daily_bin867.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.57
user 0.39
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/3662/ft1_filtered_4FGL_J1504.4+1029_daily_bin867.fits', '/scratch/kocevski/3662/ft2_4FGL_J1504.4+1029_daily_bin867.fits', expMap='/scratch/kocevski/3662/expmap_464054401_464313601_4FGL_J1504.4+1029_daily_bin867.fits', expCube='/scratch/kocevski/3662/ltcube_464054401_464313601_4FGL_J1504.4+1029_daily_bin867.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/3662/Model_4FGL_J1504.4+1029_daily_bin867.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/3662/ft1_filtered_4FGL_J1504.4+1029_daily_bin867.fits
Spacecraft file(s): /scratch/kocevski/3662/ft2_4FGL_J1504.4+1029_daily_bin867.fits
Exposure map: /scratch/kocevski/3662/expmap_464054401_464313601_4FGL_J1504.4+1029_daily_bin867.fits
Exposure cube: /scratch/kocevski/3662/ltcube_464054401_464313601_4FGL_J1504.4+1029_daily_bin867.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/3662/Model_4FGL_J1504.4+1029_daily_bin867.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) = 7168.19152567

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    35.597       1.0000         .10000E-03   10000.    
     2 'norm      '    .10187E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    17.564       1.0000         .10000E-03   10000.    
     5 'norm      '    3.4587       1.0000         .10000E-03   10000.    
     6 'Prefactor '    114.39       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10372E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    26.411       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.716       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.4884       1.0000         .10000E-03   10000.    
    13 'Prefactor '    58.215       1.0000         .10000E-03   10000.    
    14 'norm      '    2.0541       1.0000         .10000E-03   10000.    
    15 'norm      '    4.0727       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.9814       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    43.119       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    70.673       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0771       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .86928       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=   7168.134     FROM MIGRAD    STATUS=CONVERGED    655 CALLS     3443 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     35.595        39.841       -.24861E-05   -.25505E-04
   2  norm          .10000E-03    12.594        .85293E-05** at limit **
   3  Prefactor     .10000E-03    5.7455       -.61554E-06** at limit **
   4  Prefactor     17.572        8.9232        .76579E-06   -.46850E-04
   5  norm          3.4586        3.2529        .57521E-07   -.22803E-03
   6  Prefactor     114.41        79.960        .19320E-04   -.72224E-05
   7  Prefactor     .10000E-03    16.549       -.13295E-04** at limit **
   8  norm          26.416        19.216        .21721E-05    .77758E-04
   9  Prefactor     .10000E-03    6.7531        .36852E-05** at limit **
  10  Prefactor     .10000E-03    23.492        .93994E-08** at limit **
  11  Prefactor     11.723        13.721        .21834E-05    .42884E-04
  12  Prefactor     5.4722        35.312       -.38556E-04   -.71207E-04
  13  Prefactor     58.233        46.470        .19219E-04    .41302E-04
  14  norm          2.0544        .32353       -.35748E-07   -.24890E-03
  15  norm          4.0734        2.5842        .29086E-06   -.22981E-03
  16  norm          .10000E-03    2.5039        .13286E-06** at limit **
  17  norm          .10000E-03    31.977        .11655E-04** at limit **
  18  norm          5.9797        4.3955       -.96871E-06   -.12084E-03
  19  Prefactor     .10000E-03    30.302        .13002E-04** at limit **
  20  Prefactor     .10000E-03    37.689       -.78742E-05** at limit **
  21  Prefactor     43.141        36.267        .22829E-04   -.25087E-04
  22  Prefactor     .10000E-03    3.7150       -.47825E-08** at limit **
  23  Prefactor     70.662        48.692       -.10849E-04   -.20197E-04
  24  Prefactor     .10000E-03    7.6158       -.41708E-05** at limit **
  25  norm          .10000E-03    .91062       -.10930E-06** at limit **
  26  Prefactor     .10000E-03    38.467       -.11760E-04** at limit **
  27  Normalizat    1.0759        .24346       -.52807E-05    .14021E-03
  28  Prefactor     .86996        .13077        .48085E-06   -.13642E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 35.5947
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.5722
  norm       = 3.4586
  Prefactor  = 114.41
  Prefactor  = 0.0001
  norm       = 26.4164
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.7233
  Prefactor  = 5.47221
  Prefactor  = 58.2329
  norm       = 2.05436
  norm       = 4.07343
  norm       = 0.0001
  norm       = 0.0001
  norm       = 5.97967
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 43.1412
  Prefactor  = 0.0001
  Prefactor  = 70.6621
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.07591
  Prefactor  = 0.869961
 **********
 **   18 **HESSE 
 **********

 FCN=   7168.134     FROM HESSE     STATUS=OK           513 CALLS     3956 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     35.595        40.084        .67169E-04   -1.4514    
   2  norm          .10000E-03    12.596        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.7943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     17.572        8.9678        .95566E-04   -1.4869    
   5  norm          3.4586        3.2460        .14318E-03   -1.5336    
   6  Prefactor     114.41        79.937        .18808E-03   -1.3565    
   7  Prefactor     .10000E-03    16.568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          26.416        19.223        .77950E-04   -1.4680    
   9  Prefactor     .10000E-03    6.7618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    23.596        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     11.723        13.712        .11704E-03   -1.5023    
  12  Prefactor     5.4722        35.437        .17151E-03   -1.5240    
  13  Prefactor     58.233        46.446        .52581E-04   -1.4180    
  14  norm          2.0544        .32456        .18120E-04   -1.5421    
  15  norm          4.0734        2.5802        .10203E-03   -1.5304    
  16  norm          .10000E-03    2.5059        .13084E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    32.018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.9797        4.3965        .14507E-03   -1.5219    
  19  Prefactor     .10000E-03    30.336        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    37.775        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     43.141        36.288        .61051E-04   -1.4393    
  22  Prefactor     .10000E-03    3.7578        .15932E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     70.662        48.779        .47751E-04   -1.4025    
  24  Prefactor     .10000E-03    7.6162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    .91431        .78890E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    38.474        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.0759        .29181        .33863E-03   -.90529    
  28  Prefactor     .86996        .15644        .21376E-03   -.97199    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.07146e-10
Minuit parameter uncertainties:
  1  40.1144
  2  4.80746e-06
  3  6.55199e-06
  4  8.9685
  5  3.24617
  6  80.0121
  7  4.25339e-05
  8  19.2273
  9  4.58658e-05
  10  4.31761e-05
  11  13.7155
  12  27.875
  13  46.4744
  14  0.324564
  15  2.58031
  16  1.84839e-06
  17  1.22647e-05
  18  4.39672
  19  6.95904e-05
  20  9.92035e-05
  21  36.3064
  22  1.71424e-05
  23  48.8064
  24  4.17127e-06
  25  2.40578e-06
  26  2.28008e-05
  27  0.292244
  28  0.156524
Done.

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

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  2.054e+00  3.246e-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:  8.700e-01  1.565e-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:  1.076e+00  2.922e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 131.76
Ra Dec: 226.103 10.498
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 5.00e-07 +/- 7.90e-08
Energy Flux (Fixed Index): 2.03e-04 +/- 3.20e-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) = 7168.13340747
delta logL = 0.000396189893763

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7168.13337259
delta logL = 0.000431072719948

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0555       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1194       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0777       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86924       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=   7168.133     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      195 TOTAL
                     EDM=   .12E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0555        .35851        .41030E-02    .14768E-04
   2  alpha         2.1195        .18038        .12079        .67263E-05
   3  Normalizat    1.0777        .22975        .76457E-01    .19026E-04
   4  Prefactor     .86926        .13038        .44612E-01    .90253E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.05546
  alpha      = 2.11951
  Normalizat = 1.07769
  Prefactor  = 0.869259
 **********
 **   18 **HESSE 
 **********

 FCN=   7168.133     FROM HESSE     STATUS=OK            31 CALLS      226 TOTAL
                     EDM=   .12E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0555        .32560        .18137E-04   -1.5421    
   2  alpha         2.1195        .16643        .52727E-03   -.15279    
   3  Normalizat    1.0777        .27433        .33840E-03   -.90471    
   4  Prefactor     .86926        .15512        .21384E-03   -.97224    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1978e-15
Minuit parameter uncertainties:
  1  0.325602
  2  0.166554
  3  0.274696
  4  0.155197
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/3662': 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) = 7168.13337227
delta logL = 0.000431393253166

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  2.055e+00  3.256e-01  1.000e-04  1.000e+04 ( 1.000e-10)
201        alpha:  2.120e+00  1.666e-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:  8.693e-01  1.552e-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:  1.078e+00  2.747e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 130.32
Ra Dec: 226.103 10.498
Photon Index (Free Index): 2.12 +/- 0.17
Photon Flux (Free Index): 4.99e-07 +/- 9.36e-08
Energy Flux (Free Index): 2.03e-04 +/- 3.93e-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/3662/cmap_HighResolution_464054401_464313601_4FGL_J1504.4+1029_daily_bin867.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.00e-07', energy_flux2='2.03e-04', photon_flux_error='7.90e-08', dlogl='4.31e-04', energy_flux='2.03e-04', photon_flux2='4.99e-07', job_status='DONE', time_completed='2021-09-10 21:47:27.709949', photon_index_error2='0.17', photon_index2='2.12', ts='131.76', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', energy_flux_error2='3.93e-05', EG='1.08', time_epoch_completed='1631335647.71', return_code='0', job_id='3662', GAL2='0.87', EG2='1.08', return_code2='0', energy_flux_error='3.20e-05', photon_flux_error2='9.36e-08', ts2='130.32', photon_index='2.12' WHERE bin_id='867' AND source_name='4FGL J1504.4+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 21:47:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 3662: <4FGL_J1504.4+1029_daily_bin867> in cluster <slac> Done

Job <4FGL_J1504.4+1029_daily_bin867> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep 10 21:36:11 2021
Job was executed on host(s) <bullet0084>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 21:36:13 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:36:13 2021
Terminated at Fri Sep 10 21:47:28 2021
Results reported at Fri Sep 10 21:47:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_daily_bin867 226.103 10.4978 464054401 464313601 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 :                                   662.29 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             298.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   675 sec.
    Turnaround time :                            677 sec.

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

