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


Performing analysis on: 4FGL_J1504.4+1029_daily_bin1305
RA = 226.103, Dec = 10.4978
tmin = 577584001, tmax = 577843201
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='7762', job_status='RUN', time_executed='2021-09-10 21:46:18.826909', time_epoch_executed='1631335578.83' WHERE source_name='4FGL J1504.4+1029' and cadence='daily' and bin_id='1305'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/7762

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/7762/ft1_4FGL_J1504.4+1029_daily_bin1305.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/7762/ft2_4FGL_J1504.4+1029_daily_bin1305.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/7762/ft1_4FGL_J1504.4+1029_daily_bin1305.fits outfile=/scratch/kocevski/7762/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin1305.fits ra=226.103 dec=10.4978 rad=12.0 tmin=577584001.0 tmax=577843201.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 2.78
user 2.55
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/7762/ft2_4FGL_J1504.4+1029_daily_bin1305.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/7762/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin1305.fits evtable="EVENTS" outfile="/scratch/kocevski/7762/ft1_filtered_4FGL_J1504.4+1029_daily_bin1305.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/7762/ft1_filtered_4FGL_J1504.4+1029_daily_bin1305.fits evtable="EVENTS" scfile=/scratch/kocevski/7762/ft2_4FGL_J1504.4+1029_daily_bin1305.fits sctable="SC_DATA" expcube=/scratch/kocevski/7762/ltcube_577584001_577843201_4FGL_J1504.4+1029_daily_bin1305.fits outfile=/scratch/kocevski/7762/expmap_577584001_577843201_4FGL_J1504.4+1029_daily_bin1305.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/7762/ltcube_577584001_577843201_4FGL_J1504.4+1029_daily_bin1305.fits
.....................!
real 190.85
user 186.28
sys 4.16

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/7762/ft1_filtered_4FGL_J1504.4+1029_daily_bin1305.fits scfile=/scratch/kocevski/7762/ft2_4FGL_J1504.4+1029_daily_bin1305.fits outfile=/scratch/kocevski/7762/cmap_577584001_577843201_4FGL_J1504.4+1029_daily_bin1305.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/7762/ft1_filtered_4FGL_J1504.4+1029_daily_bin1305.fits scfile=/scratch/kocevski/7762/ft2_4FGL_J1504.4+1029_daily_bin1305.fits outfile=/scratch/kocevski/7762/cmap_HighResolution_577584001_577843201_4FGL_J1504.4+1029_daily_bin1305.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.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    73.832       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.5656       1.0000         .10000E-03   10000.    
     4 'Prefactor '    17.904       1.0000         .10000E-03   10000.    
     5 'norm      '    1.6024       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10568E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .58247E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    6.8617       1.0000         .10000E-03   10000.    
     9 'Prefactor '    20.061       1.0000         .10000E-03   10000.    
    10 'Prefactor '    41.198       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.2155       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .42738       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.3105       1.0000         .10000E-03   10000.    
    17 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    11.695       1.0000         .10000E-03   10000.    
    19 'Prefactor '    27.422       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.6314       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.1420       1.0000         .10000E-03   10000.    
    23 'Prefactor '    101.25       1.0000         .10000E-03   10000.    
    24 'Prefactor '    40.703       1.0000         .10000E-03   10000.    
    25 'norm      '    2.1834       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0063       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0851       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=   6208.603     FROM MIGRAD    STATUS=CONVERGED    671 CALLS     3994 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.335       -.16281E-05** at limit **
   2  norm          73.845        62.521        .12436E-05    .11527E-03
   3  Prefactor     6.5654        8.3493       -.30430E-06   -.15518E-03
   4  Prefactor     17.902        12.255        .91955E-07   -.71329E-04
   5  norm          1.6025        2.4294        .13599E-06    .12022E-04
   6  Prefactor     .10007E-03    150.05        .12705E-04** at limit **
   7  Prefactor     .10029E-03    600.95       -.65139E-04** at limit **
   8  norm          6.8559        44.856       -.35394E-04    .13554E-03
   9  Prefactor     20.057        29.735       -.33615E-06   -.59648E-04
  10  Prefactor     41.225        46.530        .27761E-05    .26323E-03
  11  Prefactor     .10000E-03    29.753        .13501E-05** at limit **
  12  Prefactor     6.2307        40.568        .18436E-05    .66592E-05
  13  Prefactor     .10000E-03    27.348        .13392E-05** at limit **
  14  norm          .42729        .24760       -.39852E-07   -.36319E-04
  15  norm          .10000E-03    1.7579        .11585E-06** at limit **
  16  norm          3.3130        6.8262        .87919E-05   -.98512E-04
  17  norm          .10000E-03    16.929       -.43238E-06** at limit **
  18  norm          11.695        7.0060        .39273E-06    .38382E-03
  19  Prefactor     27.415        36.014        .11994E-06   -.31474E-04
  20  Prefactor     .10000E-03    18.107        .13109E-05** at limit **
  21  Prefactor     7.6427        32.864        .15275E-05    .15447E-04
  22  Prefactor     4.1419        7.8890        .72453E-06    .90731E-04
  23  Prefactor     101.25        52.479       -.13003E-06   -.71155E-04
  24  Prefactor     40.700        39.032        .60104E-07   -.13335E-04
  25  norm          2.1833        2.1316        .48312E-07    .47629E-05
  26  Prefactor     .10000E-03    43.667       -.24043E-05** at limit **
  27  Normalizat    1.0065        .28735       -.87804E-06    .31655E-04
  28  Prefactor     1.0850        .15409       -.49719E-06    .68671E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 73.8445
  Prefactor  = 6.56536
  Prefactor  = 17.9017
  norm       = 1.60252
  Prefactor  = 0.000100074
  Prefactor  = 0.00010029
  norm       = 6.8559
  Prefactor  = 20.0575
  Prefactor  = 41.225
  Prefactor  = 0.0001
  Prefactor  = 6.23075
  Prefactor  = 0.000100001
  norm       = 0.427288
  norm       = 0.0001
  norm       = 3.31302
  norm       = 0.0001
  norm       = 11.6952
  Prefactor  = 27.4147
  Prefactor  = 0.000100001
  Prefactor  = 7.6427
  Prefactor  = 4.14188
  Prefactor  = 101.249
  Prefactor  = 40.7001
  norm       = 2.18332
  Prefactor  = 0.000100002
  Normalizat = 1.0065
  Prefactor  = 1.08504
 **********
 **   18 **HESSE 
 **********

 FCN=   6208.603     FROM HESSE     STATUS=OK           519 CALLS     4513 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.355        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          73.845        62.551        .23363E-03   -1.3987    
   3  Prefactor     6.5654        8.3392        .15662E-03   -1.5195    
   4  Prefactor     17.902        12.271        .94656E-04   -1.4862    
   5  norm          1.6025        2.3992        .14607E-03   -1.5455    
   6  Prefactor     .10007E-03    151.36        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10029E-03    606.69        .37968E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.8559        42.667        .15316E-03   -1.5184    
   9  Prefactor     20.057        29.607        .89423E-04   -1.4812    
  10  Prefactor     41.225        46.652        .62453E-04   -1.4423    
  11  Prefactor     .10000E-03    30.237        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.2307        40.081        .16102E-03   -1.5209    
  13  Prefactor     .10000E-03    27.386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .42729        .24297        .27486E-04   -1.5577    
  15  norm          .10000E-03    1.7718        .10198E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.3130        6.9525        .11125E-02   -1.5344    
  17  norm          .10000E-03    16.933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          11.695        7.0114        .11714E-03   -1.5024    
  19  Prefactor     27.415        36.095        .76504E-04   -1.4660    
  20  Prefactor     .10000E-03    18.123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     7.6427        32.949        .14517E-03   -1.5155    
  22  Prefactor     4.1419        7.8891        .19806E-03   -1.5301    
  23  Prefactor     101.25        52.528        .39955E-04   -1.3692    
  24  Prefactor     40.700        39.075        .62830E-04   -1.4431    
  25  norm          2.1833        2.1295        .11027E-03   -1.5412    
  26  Prefactor     .10000E-03    43.720        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.0065        .33782        .37109E-03   -.92813    
  28  Prefactor     1.0850        .18162        .20675E-03   -.89946    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.88704e-09
Minuit parameter uncertainties:
  1  0.000301285
  2  62.6071
  3  8.34066
  4  12.2723
  5  2.39931
  6  0.00671539
  7  0.026813
  8  34.2422
  9  29.6291
  10  46.6934
  11  0.000244476
  12  31.637
  13  0.000277444
  14  0.242967
  15  4.91648e-06
  16  6.95415
  17  7.26044e-05
  18  7.01189
  19  36.1242
  20  0.00022818
  21  31.7669
  22  7.8911
  23  52.5524
  24  39.0995
  25  2.12953
  26  0.000646926
  27  0.338536
  28  0.181722
Done.

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

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  4.273e-01  2.430e-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.085e+00  1.817e-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.006e+00  3.385e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.82
Ra Dec: 226.103 10.498
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 1.04e-07 +/- 5.91e-08
Energy Flux (Fixed Index): 4.21e-05 +/- 2.40e-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) = 6206.56147685
delta logL = 2.04158044693

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6206.54428413
delta logL = 2.05877316334

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .37796       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1628       1.0000          .0000       5.0000    
     3 'Normalizat'    .84892       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1401       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=   6206.544     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      212 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .37806        2.1498        .41284E-02    .99451E-03
   2  alpha         3.1620        4.0794        .26346        .42907E-04
   3  Normalizat    .84867        .11239        .90289E-01    .24912E-04
   4  Prefactor     1.1402        .64470E-01    .36230E-01   -.68955E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.378056
  alpha      = 3.16204
  Normalizat = 0.84867
  Prefactor  = 1.14022
 **********
 **   18 **HESSE 
 **********

 FCN=   6206.544     FROM HESSE     STATUS=OK            31 CALLS      243 TOTAL
                     EDM=   .31E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .37806        .22400        .18400E-04   -1.5585    
   2  alpha         3.1620        .56147        .11202E-01    .26801    
   3  Normalizat    .84867        .31888        .39992E-03   -.98288    
   4  Prefactor     1.1402        .18006        .20200E-03   -.88191    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.05305e-12
Minuit parameter uncertainties:
  1  0.224005
  2  0.56667
  3  0.319592
  4  0.180159
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/7762': 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) = 6206.54428209
delta logL = 2.05877520751

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  3.781e-01  2.240e-01  1.000e-04  1.000e+04 ( 1.000e-10)
201        alpha:  3.162e+00  5.667e-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.140e+00  1.802e-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.487e-01  3.196e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.30
Ra Dec: 226.103 10.498
Photon Index (Free Index): 3.16 +/- 0.57
Photon Flux (Free Index): 2.49e-07 +/- 1.13e-07
Energy Flux (Free Index): 4.76e-05 +/- 1.94e-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/7762/cmap_HighResolution_577584001_577843201_4FGL_J1504.4+1029_daily_bin1305.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.04e-07', energy_flux2='4.76e-05', photon_flux_error='5.91e-08', dlogl='2.06e+00', energy_flux='4.21e-05', photon_flux2='2.49e-07', job_status='DONE', time_completed='2021-09-10 21:56:38.278936', photon_index_error2='0.57', photon_index2='3.16', ts='5.82', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', energy_flux_error2='1.94e-05', EG='1.01', time_epoch_completed='1631336198.28', return_code='0', job_id='7762', GAL2='1.14', EG2='0.85', return_code2='0', energy_flux_error='2.40e-05', photon_flux_error2='1.13e-07', ts2='10.30', photon_index='2.12' WHERE bin_id='1305' AND source_name='4FGL J1504.4+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 21:56:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 7762: <4FGL_J1504.4+1029_daily_bin1305> in cluster <slac> Done

Job <4FGL_J1504.4+1029_daily_bin1305> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 10 21:46:07 2021
Job was executed on host(s) <bullet0107>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 21:46:08 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:46:08 2021
Terminated at Fri Sep 10 21:56:39 2021
Results reported at Fri Sep 10 21:56:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_daily_bin1305 226.103 10.4978 577584001 577843201 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 :                                   615.14 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             336.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   630 sec.
    Turnaround time :                            632 sec.

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

