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


Performing analysis on: 4FGL_J1504.4+1029_daily_bin1543
RA = 226.103, Dec = 10.4978
tmin = 639273601, tmax = 639532801
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='9235', job_status='RUN', time_executed='2021-09-10 21:55:11.859632', time_epoch_executed='1631336111.86' WHERE source_name='4FGL J1504.4+1029' and cadence='daily' and bin_id='1543'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/9235

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/9235/ft1_4FGL_J1504.4+1029_daily_bin1543.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/9235/ft2_4FGL_J1504.4+1029_daily_bin1543.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/9235/ft1_4FGL_J1504.4+1029_daily_bin1543.fits outfile=/scratch/kocevski/9235/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin1543.fits ra=226.103 dec=10.4978 rad=12.0 tmin=639273601.0 tmax=639532801.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 5.22
user 4.98
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/9235/ft1_filtered_4FGL_J1504.4+1029_daily_bin1543.fits" evtable="EVENTS" scfile=/scratch/kocevski/9235/ft2_4FGL_J1504.4+1029_daily_bin1543.fits sctable="SC_DATA" outfile=/scratch/kocevski/9235/ltcube_639273601_639532801_4FGL_J1504.4+1029_daily_bin1543.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/9235/ft2_4FGL_J1504.4+1029_daily_bin1543.fits
.....................!
real 11.63
user 11.31
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/9235/ft1_filtered_4FGL_J1504.4+1029_daily_bin1543.fits evtable="EVENTS" scfile=/scratch/kocevski/9235/ft2_4FGL_J1504.4+1029_daily_bin1543.fits sctable="SC_DATA" expcube=/scratch/kocevski/9235/ltcube_639273601_639532801_4FGL_J1504.4+1029_daily_bin1543.fits outfile=/scratch/kocevski/9235/expmap_639273601_639532801_4FGL_J1504.4+1029_daily_bin1543.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/9235/ltcube_639273601_639532801_4FGL_J1504.4+1029_daily_bin1543.fits
.....................!
real 190.87
user 185.00
sys 5.52

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/9235/ft1_filtered_4FGL_J1504.4+1029_daily_bin1543.fits scfile=/scratch/kocevski/9235/ft2_4FGL_J1504.4+1029_daily_bin1543.fits outfile=/scratch/kocevski/9235/cmap_639273601_639532801_4FGL_J1504.4+1029_daily_bin1543.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.52
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/9235/ft1_filtered_4FGL_J1504.4+1029_daily_bin1543.fits scfile=/scratch/kocevski/9235/ft2_4FGL_J1504.4+1029_daily_bin1543.fits outfile=/scratch/kocevski/9235/cmap_HighResolution_639273601_639532801_4FGL_J1504.4+1029_daily_bin1543.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.53
user 0.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    14.634       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .70521       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .76113E-01   1.0000         .10000E-03   10000.    
     5 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    21.015       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.1250       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.9023       1.0000         .10000E-03   10000.    
    13 'Prefactor '    67.400       1.0000         .10000E-03   10000.    
    14 'norm      '    .18999       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.3501       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    38.804       1.0000         .10000E-03   10000.    
    21 'Prefactor '    73.769       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    22.865       1.0000         .10000E-03   10000.    
    25 'norm      '    2.8788       1.0000         .10000E-03   10000.    
    26 'Prefactor '    44.464       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .78646       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1075       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=   6477.358     FROM MIGRAD    STATUS=CONVERGED    702 CALLS     3584 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.626       -.21549E-07** at limit **
   2  norm          14.633        21.620        .62082E-07   -.16295E-04
   3  Prefactor     .70940        7.4950        .22633E-05   -.20051E-04
   4  Prefactor     .56386E-01    8.2654       -.13366E-05    .17157E-03
   5  norm          .10000E-03    1.6278        .12172E-06** at limit **
   6  Prefactor     20.966        62.227       -.16525E-05   -.11540E-03
   7  Prefactor     .10000E-03    17.679       -.43468E-06** at limit **
   8  norm          .10000E-03    11.398       -.37981E-06** at limit **
   9  Prefactor     .10000E-03    41.819        .13261E-05** at limit **
  10  Prefactor     2.1247        15.130        .20478E-05    .12102E-03
  11  Prefactor     .10000E-03    9.7358        .17708E-06** at limit **
  12  Prefactor     8.8997        24.286        .60865E-06    .83716E-05
  13  Prefactor     67.397        46.517        .34770E-08   -.38600E-04
  14  norm          .18997        .14204        .22516E-07    .19906E-03
  15  norm          .10000E-03    .82183       -.10605E-07** at limit **
  16  norm          .10000E-03    2.0526        .21927E-07** at limit **
  17  norm          .10000E-03    29.490       -.48039E-06** at limit **
  18  norm          1.3506        3.5569        .20310E-05    .76333E-03
  19  Prefactor     .10000E-03    41.829        .29161E-06** at limit **
  20  Prefactor     38.798        43.756       -.88114E-07   -.10028E-03
  21  Prefactor     73.758        39.004        .23432E-06   -.11730E-03
  22  Prefactor     .10002E-03    8.6016        .44010E-05** at limit **
  23  Prefactor     .10000E-03    22.045        .54549E-06** at limit **
  24  Prefactor     22.864        24.661        .16268E-06   -.51871E-04
  25  norm          2.8789        2.9615        .28543E-06    .30592E-03
  26  Prefactor     44.461        72.401        .29457E-06   -.16208E-04
  27  Normalizat    .78663        .22699       -.10888E-05   -.39092E-03
  28  Prefactor     1.1074        .13337       -.37292E-06   -.72826E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 14.6328
  Prefactor  = 0.709404
  Prefactor  = 0.0563864
  norm       = 0.0001
  Prefactor  = 20.9665
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 2.1247
  Prefactor  = 0.0001
  Prefactor  = 8.89969
  Prefactor  = 67.3975
  norm       = 0.189971
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  norm       = 1.35064
  Prefactor  = 0.0001
  Prefactor  = 38.7978
  Prefactor  = 73.7581
  Prefactor  = 0.000100021
  Prefactor  = 0.000100001
  Prefactor  = 22.8637
  norm       = 2.87885
  Prefactor  = 44.4611
  Normalizat = 0.786629
  Prefactor  = 1.10745
 **********
 **   18 **HESSE 
 **********

 FCN=   6477.358     FROM HESSE     STATUS=OK           521 CALLS     4105 TOTAL
                     EDM=   .47E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          14.633        21.621        .10470E-03   -1.4943    
   3  Prefactor     .70940        14.442        .36663E-02   -1.5540    
   4  Prefactor     .56386E-01    10.829        .53236E-01   -1.5661    
   5  norm          .10000E-03    1.6562        .10027E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     20.966        62.783        .87372E-04   -1.4792    
   7  Prefactor     .10000E-03    17.732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    11.458        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    42.793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.1247        15.413        .28288E-03   -1.5416    
  11  Prefactor     .10000E-03    9.8440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.8997        24.244        .13434E-03   -1.5111    
  13  Prefactor     67.397        46.459        .48889E-04   -1.4064    
  14  norm          .18997        .14082        .25096E-04   -1.5621    
  15  norm          .10000E-03    .83498        .71168E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.0543        .11261E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    29.603        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.3506        3.7506        .24988E-03   -1.5476    
  19  Prefactor     .10000E-03    42.134        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     38.798        43.800        .64343E-04   -1.4461    
  21  Prefactor     73.758        39.324        .46746E-04   -1.3988    
  22  Prefactor     .10002E-03    11.873        .30893E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    22.150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     22.864        24.662        .83768E-04   -1.4751    
  25  norm          2.8789        2.9685        .13651E-03   -1.5369    
  26  Prefactor     44.461        72.437        .60125E-04   -1.4373    
  27  Normalizat    .78663        .26934        .34268E-03   -1.0057    
  28  Prefactor     1.1074        .15824        .17926E-03   -.89229    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.69157e-08
Minuit parameter uncertainties:
  1  5.38516e-06
  2  21.6321
  3  6.40302
  4  1.56174
  5  8.86321e-06
  6  62.9815
  7  0.000135655
  8  9.55267e-05
  9  0.000511843
  10  11.449
  11  2.97127e-05
  12  24.2703
  13  46.484
  14  0.14082
  15  1.7849e-06
  16  1.45726e-06
  17  0.00026216
  18  3.75127
  19  0.000135282
  20  43.8359
  21  39.338
  22  0.000993757
  23  0.000251333
  24  24.6727
  25  2.9687
  26  72.5813
  27  0.269799
  28  0.158309
Done.

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

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  1.900e-01  1.408e-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:  1.107e+00  1.583e-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:  7.866e-01  2.698e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.43
Ra Dec: 226.103 10.498
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 4.62e-08 +/- 3.43e-08
Energy Flux (Fixed Index): 1.87e-05 +/- 1.39e-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) = 6477.31001921
delta logL = 0.0479007194681

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6477.30832957
delta logL = 0.0495903563915

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .19622       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3380       1.0000          .0000       5.0000    
     3 'Normalizat'    .77401       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1115       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=   6477.308     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      204 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .19609        3.5687        .54000E-02    .10195E-02
   2  alpha         2.3373        2.8297        .41261        .54143E-05
   3  Normalizat    .77449        .87223E-01    .77954E-01    .27689E-04
   4  Prefactor     1.1113        .55119E-01    .37167E-01    .32029E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.196091
  alpha      = 2.33732
  Normalizat = 0.774486
  Prefactor  = 1.11129
 **********
 **   18 **HESSE 
 **********

 FCN=   6477.308     FROM HESSE     STATUS=OK            31 CALLS      235 TOTAL
                     EDM=   .41E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .19609        .13745        .24109E-04   -1.5619    
   2  alpha         2.3373        .66686        .17494E-01   -.65120E-01
   3  Normalizat    .77449        .25078        .34509E-03   -1.0102    
   4  Prefactor     1.1113        .15242        .17896E-03   -.89107    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.05034e-11
Minuit parameter uncertainties:
  1  0.137454
  2  0.675067
  3  0.251154
  4  0.152479
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/9235': 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) = 6477.3083269
delta logL = 0.0495930260986

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  1.961e-01  1.375e-01  1.000e-04  1.000e+04 ( 1.000e-10)
201        alpha:  2.337e+00  6.751e-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:  1.111e+00  1.525e-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:  7.745e-01  2.512e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.53
Ra Dec: 226.103 10.498
Photon Index (Free Index): 2.34 +/- 0.68
Photon Flux (Free Index): 5.65e-08 +/- 4.91e-08
Energy Flux (Free Index): 1.80e-05 +/- 1.28e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/9235/cmap_HighResolution_639273601_639532801_4FGL_J1504.4+1029_daily_bin1543.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.62e-08', energy_flux2='1.80e-05', photon_flux_error='3.43e-08', dlogl='4.96e-02', energy_flux='1.87e-05', photon_flux2='5.65e-08', job_status='DONE', time_completed='2021-09-10 22:05:48.079802', photon_index_error2='0.68', photon_index2='2.34', ts='4.43', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', energy_flux_error2='1.28e-05', EG='0.79', time_epoch_completed='1631336748.08', return_code='0', job_id='9235', GAL2='1.11', EG2='0.77', return_code2='0', energy_flux_error='1.39e-05', photon_flux_error2='4.91e-08', ts2='4.53', photon_index='2.12' WHERE bin_id='1543' AND source_name='4FGL J1504.4+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 22:05:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0284>
Subject: Job 9235: <4FGL_J1504.4+1029_daily_bin1543> in cluster <slac> Done

Job <4FGL_J1504.4+1029_daily_bin1543> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep 10 21:51:15 2021
Job was executed on host(s) <bullet0284>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 21:51:16 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:51:16 2021
Terminated at Fri Sep 10 22:05:48 2021
Results reported at Fri Sep 10 22:05:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_daily_bin1543 226.103 10.4978 639273601 639532801 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 :                                   633.17 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             262.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   872 sec.
    Turnaround time :                            873 sec.

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

