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


Performing analysis on: 4FGL_J1504.4+1029_daily_bin1001
RA = 226.103, Dec = 10.4978
tmin = 498787201, tmax = 499046401
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='3887', job_status='RUN', time_executed='2021-09-10 21:38:35.976644', time_epoch_executed='1631335115.98' WHERE source_name='4FGL J1504.4+1029' and cadence='daily' and bin_id='1001'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/3887

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/3887/ft1_4FGL_J1504.4+1029_daily_bin1001.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/3887/ft2_4FGL_J1504.4+1029_daily_bin1001.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/3887/ft1_4FGL_J1504.4+1029_daily_bin1001.fits outfile=/scratch/kocevski/3887/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin1001.fits ra=226.103 dec=10.4978 rad=12.0 tmin=498787201.0 tmax=499046401.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.00
user 4.74
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/3887/ft1_filtered_4FGL_J1504.4+1029_daily_bin1001.fits evtable="EVENTS" scfile=/scratch/kocevski/3887/ft2_4FGL_J1504.4+1029_daily_bin1001.fits sctable="SC_DATA" expcube=/scratch/kocevski/3887/ltcube_498787201_499046401_4FGL_J1504.4+1029_daily_bin1001.fits outfile=/scratch/kocevski/3887/expmap_498787201_499046401_4FGL_J1504.4+1029_daily_bin1001.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/3887/ltcube_498787201_499046401_4FGL_J1504.4+1029_daily_bin1001.fits
.....................!
real 190.07
user 185.03
sys 4.60

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/3887/ft1_filtered_4FGL_J1504.4+1029_daily_bin1001.fits scfile=/scratch/kocevski/3887/ft2_4FGL_J1504.4+1029_daily_bin1001.fits outfile=/scratch/kocevski/3887/cmap_498787201_499046401_4FGL_J1504.4+1029_daily_bin1001.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/3887/ft1_filtered_4FGL_J1504.4+1029_daily_bin1001.fits scfile=/scratch/kocevski/3887/ft2_4FGL_J1504.4+1029_daily_bin1001.fits outfile=/scratch/kocevski/3887/cmap_HighResolution_498787201_499046401_4FGL_J1504.4+1029_daily_bin1001.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.55
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    18.169       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.223       1.0000         .10000E-03   10000.    
     5 'norm      '    3.1075       1.0000         .10000E-03   10000.    
     6 'Prefactor '    47.132       1.0000         .10000E-03   10000.    
     7 'Prefactor '    34.506       1.0000         .10000E-03   10000.    
     8 'norm      '    .12898E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.0514       1.0000         .10000E-03   10000.    
    14 'norm      '    1.4106       1.0000         .10000E-03   10000.    
    15 'norm      '    1.9116       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    25.927       1.0000         .10000E-03   10000.    
    18 'norm      '    5.4794       1.0000         .10000E-03   10000.    
    19 'Prefactor '    44.431       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .84611       1.0000         .10000E-03   10000.    
    23 'Prefactor '    96.153       1.0000         .10000E-03   10000.    
    24 'Prefactor '    22.063       1.0000         .10000E-03   10000.    
    25 'norm      '    1.9136       1.0000         .10000E-03   10000.    
    26 'Prefactor '    45.153       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .62180       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1550       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=   6940.126     FROM MIGRAD    STATUS=CONVERGED    689 CALLS     3463 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.711       -.15241E-06** at limit **
   2  norm          18.166        30.463       -.32718E-08   -.13583E-04
   3  Prefactor     .10000E-03    6.4533        .31533E-07** at limit **
   4  Prefactor     10.227        9.1715       -.55103E-07   -.36175E-04
   5  norm          3.1075        2.8752       -.11833E-07    .22224E-05
   6  Prefactor     47.116        75.416       -.23373E-05   -.62211E-04
   7  Prefactor     34.472        37.365       -.22836E-05   -.15960E-03
   8  norm          .10000E-03    24.234       -.10686E-05** at limit **
   9  Prefactor     .10000E-03    34.495       -.13871E-06** at limit **
  10  Prefactor     .10000E-03    12.852        .93756E-07** at limit **
  11  Prefactor     .10000E-03    6.9012        .68609E-07** at limit **
  12  Prefactor     .10000E-03    10.078        .75607E-07** at limit **
  13  Prefactor     2.9543        69.327        .21997E-05    .12235E-04
  14  norm          1.4106        .27918       -.62991E-09   -.17740E-03
  15  norm          1.9113        2.1879        .13980E-06   -.45837E-04
  16  norm          .10000E-03    3.6386        .84927E-07** at limit **
  17  norm          25.926        35.607        .66893E-07    .97258E-06
  18  norm          5.4782        4.5605        .67777E-07   -.24642E-04
  19  Prefactor     44.429        45.527       -.30094E-06   -.24030E-04
  20  Prefactor     .10000E-03    10.190       -.47566E-07** at limit **
  21  Prefactor     .10000E-03    9.4619        .16624E-07** at limit **
  22  Prefactor     .84306        5.0869        .26546E-05   -.12448E-03
  23  Prefactor     96.146        55.199       -.71819E-06   -.64865E-04
  24  Prefactor     22.054        24.075        .10635E-06    .90983E-05
  25  norm          1.9129        2.7324        .25565E-06   -.67699E-05
  26  Prefactor     45.152        49.160       -.23383E-06   -.12186E-04
  27  Normalizat    .62155        .24862        .84575E-06   -.58908E-04
  28  Prefactor     1.1552        .14149       -.48909E-06   -.68082E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 18.1656
  Prefactor  = 0.0001
  Prefactor  = 10.2275
  norm       = 3.10753
  Prefactor  = 47.1164
  Prefactor  = 34.4722
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.95428
  norm       = 1.41056
  norm       = 1.91127
  norm       = 0.0001
  norm       = 25.9255
  norm       = 5.47818
  Prefactor  = 44.4286
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.843055
  Prefactor  = 96.1456
  Prefactor  = 22.0544
  norm       = 1.91291
  Prefactor  = 45.152
  Normalizat = 0.621545
  Prefactor  = 1.15518
 **********
 **   18 **HESSE 
 **********

 FCN=   6940.126     FROM HESSE     STATUS=OK           515 CALLS     3978 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          18.166        30.469        .93963E-04   -1.4855    
   3  Prefactor     .10000E-03    6.4953        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.227        9.1909        .12532E-03   -1.5068    
   5  norm          3.1075        2.8751        .13150E-03   -1.5355    
   6  Prefactor     47.116        76.395        .58405E-04   -1.4334    
   7  Prefactor     34.472        38.760        .68220E-04   -1.4533    
   8  norm          .10000E-03    24.253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    34.708        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    12.892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.9091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.9543        69.422        .23226E-03   -1.5364    
  14  norm          1.4106        .27922        .18539E-04   -1.5470    
  15  norm          1.9113        2.1672        .12353E-03   -1.5431    
  16  norm          .10000E-03    3.6508        .15519E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          25.926        35.616        .78673E-04   -1.4689    
  18  norm          5.4782        4.5527        .15376E-03   -1.5240    
  19  Prefactor     44.429        45.593        .60147E-04   -1.4374    
  20  Prefactor     .10000E-03    10.193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    9.4695        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .84306        5.5113        .36754E-03   -1.5524    
  23  Prefactor     96.146        55.458        .40991E-04   -1.3744    
  24  Prefactor     22.054        24.104        .85275E-04   -1.4768    
  25  norm          1.9129        2.7184        .15941E-03   -1.5431    
  26  Prefactor     45.152        49.177        .59666E-04   -1.4363    
  27  Normalizat    .62155        .27335        .41427E-03   -1.0708    
  28  Prefactor     1.1552        .15830        .18602E-03   -.87722    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.13987e-10
Minuit parameter uncertainties:
  1  7.25547e-06
  2  30.495
  3  3.47244e-06
  4  9.19218
  5  2.87524
  6  76.5542
  7  38.7883
  8  0.000157662
  9  6.80302e-05
  10  1.77258e-05
  11  8.15838e-07
  12  2.77602e-06
  13  28.6791
  14  0.279219
  15  2.16732
  16  3.97578e-06
  17  35.645
  18  4.55302
  19  45.6285
  20  7.75214e-06
  21  2.429e-07
  22  4.31139
  23  55.4883
  24  24.1144
  25  2.71862
  26  49.2213
  27  0.273952
  28  0.158367
Done.

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

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  1.411e+00  2.792e-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.155e+00  1.584e-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:  6.215e-01  2.740e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 77.01
Ra Dec: 226.103 10.498
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 3.43e-07 +/- 6.79e-08
Energy Flux (Fixed Index): 1.39e-04 +/- 2.75e-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) = 6940.04021261
delta logL = 0.0854927066475

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6940.03054655
delta logL = 0.0951587687105

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4159       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0393       1.0000          .0000       5.0000    
     3 'Normalizat'    .64287       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1471       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=   6940.031     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      198 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4159        .29922        .42501E-02   -.39155E-02
   2  alpha         2.0393        .20185        .14157        .21191E-03
   3  Normalizat    .64291        .23387        .92069E-01    .26671E-03
   4  Prefactor     1.1471        .13833        .36021E-01    .29022E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.41592
  alpha      = 2.03928
  Normalizat = 0.642911
  Prefactor  = 1.14708
 **********
 **   18 **HESSE 
 **********

 FCN=   6940.031     FROM HESSE     STATUS=OK            25 CALLS      223 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4159        .28186        .18795E-04   -1.5470    
   2  alpha         2.0393        .19350        .61475E-03   -.18535    
   3  Normalizat    .64291        .26179        .40794E-03   -1.0619    
   4  Prefactor     1.1471        .15497        .18663E-03   -.87976    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.21652e-10
Minuit parameter uncertainties:
  1  0.281858
  2  0.1937
  3  0.262302
  4  0.15503
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/3887': 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) = 6940.03054653
delta logL = 0.0951587912305

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  1.416e+00  2.819e-01  1.000e-04  1.000e+04 ( 1.000e-10)
201        alpha:  2.039e+00  1.937e-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.147e+00  1.550e-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:  6.429e-01  2.623e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 76.52
Ra Dec: 226.103 10.498
Photon Index (Free Index): 2.04 +/- 0.19
Photon Flux (Free Index): 3.25e-07 +/- 7.76e-08
Energy Flux (Free Index): 1.48e-04 +/- 3.61e-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/3887/cmap_HighResolution_498787201_499046401_4FGL_J1504.4+1029_daily_bin1001.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.43e-07', energy_flux2='1.48e-04', photon_flux_error='6.79e-08', dlogl='9.52e-02', energy_flux='1.39e-04', photon_flux2='3.25e-07', job_status='DONE', time_completed='2021-09-10 21:49:19.178242', photon_index_error2='0.19', photon_index2='2.04', ts='77.01', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', energy_flux_error2='3.61e-05', EG='0.62', time_epoch_completed='1631335759.18', return_code='0', job_id='3887', GAL2='1.15', EG2='0.64', return_code2='0', energy_flux_error='2.75e-05', photon_flux_error2='7.76e-08', ts2='76.52', photon_index='2.12' WHERE bin_id='1001' AND source_name='4FGL J1504.4+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 21:49:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 3887: <4FGL_J1504.4+1029_daily_bin1001> in cluster <slac> Done

Job <4FGL_J1504.4+1029_daily_bin1001> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep 10 21:36:29 2021
Job was executed on host(s) <bullet0288>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 21:36:31 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:31 2021
Terminated at Fri Sep 10 21:49:19 2021
Results reported at Fri Sep 10 21:49:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_daily_bin1001 226.103 10.4978 498787201 499046401 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 :                                   636.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             324.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   768 sec.
    Turnaround time :                            770 sec.

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

