/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 146 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7542
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1504.4+1029_daily_bin1375
RA = 226.103, Dec = 10.4978
tmin = 595728001, tmax = 595987201
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='7867', job_status='RUN', time_executed='2021-09-10 21:48:52.007769', time_epoch_executed='1631335732.01' WHERE source_name='4FGL J1504.4+1029' and cadence='daily' and bin_id='1375'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/7867

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/7867/ft1_4FGL_J1504.4+1029_daily_bin1375.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/7867/ft2_4FGL_J1504.4+1029_daily_bin1375.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/7867/ft1_4FGL_J1504.4+1029_daily_bin1375.fits outfile=/scratch/kocevski/7867/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin1375.fits ra=226.103 dec=10.4978 rad=12.0 tmin=595728001.0 tmax=595987201.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.56
user 2.36
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/7867/ft1_filtered_4FGL_J1504.4+1029_daily_bin1375.fits evtable="EVENTS" scfile=/scratch/kocevski/7867/ft2_4FGL_J1504.4+1029_daily_bin1375.fits sctable="SC_DATA" expcube=/scratch/kocevski/7867/ltcube_595728001_595987201_4FGL_J1504.4+1029_daily_bin1375.fits outfile=/scratch/kocevski/7867/expmap_595728001_595987201_4FGL_J1504.4+1029_daily_bin1375.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/7867/ltcube_595728001_595987201_4FGL_J1504.4+1029_daily_bin1375.fits
.....................!
real 193.53
user 187.24
sys 5.91

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/7867/ft1_filtered_4FGL_J1504.4+1029_daily_bin1375.fits scfile=/scratch/kocevski/7867/ft2_4FGL_J1504.4+1029_daily_bin1375.fits outfile=/scratch/kocevski/7867/cmap_595728001_595987201_4FGL_J1504.4+1029_daily_bin1375.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.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/7867/ft1_filtered_4FGL_J1504.4+1029_daily_bin1375.fits scfile=/scratch/kocevski/7867/ft2_4FGL_J1504.4+1029_daily_bin1375.fits outfile=/scratch/kocevski/7867/cmap_HighResolution_595728001_595987201_4FGL_J1504.4+1029_daily_bin1375.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=226.103 yref=10.4978 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    28.612       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11628E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.0997       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10627E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10144E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    28.712       1.0000         .10000E-03   10000.    
     9 'Prefactor '    21.737       1.0000         .10000E-03   10000.    
    10 'Prefactor '    25.674       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.618       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .66693       1.0000         .10000E-03   10000.    
    15 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10055E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    12.707       1.0000         .10000E-03   10000.    
    19 'Prefactor '    26.736       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .17353E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    26.315       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    45.432       1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.1751       1.0000         .10000E-03   10000.    
    25 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .11117E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .70035       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.3296       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=   7846.102     FROM MIGRAD    STATUS=CONVERGED    665 CALLS     3447 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.109        .19598E-04** at limit **
   2  norm          28.612        27.334       -.63382E-08   -.19905E-04
   3  Prefactor     .10000E-03    6.2210       -.29454E-06** at limit **
   4  Prefactor     .10000E-03    3.1873        .77712E-06** at limit **
   5  norm          3.0998        2.5895        .69046E-08   -.26575E-03
   6  Prefactor     .10000E-03    37.587        .34848E-04** at limit **
   7  Prefactor     .10000E-03    27.561       -.10725E-04** at limit **
   8  norm          28.711        19.944       -.18767E-06    .77591E-04
   9  Prefactor     21.724        26.863       -.42263E-05    .32189E-04
  10  Prefactor     25.677        27.819        .23004E-05    .13445E-04
  11  Prefactor     .10000E-03    10.958       -.57048E-05** at limit **
  12  Prefactor     12.607        32.115       -.91005E-05    .80796E-04
  13  Prefactor     .10000E-03    21.869       -.20803E-04** at limit **
  14  norm          .66692        .23832        .20281E-07    .43674E-03
  15  norm          .10000E-03    2.8675        .49092E-07** at limit **
  16  norm          .10000E-03    1.9099       -.37613E-07** at limit **
  17  norm          .10000E-03    25.978       -.17000E-04** at limit **
  18  norm          12.710        7.5466       -.11283E-06    .16374E-04
  19  Prefactor     26.777        45.883        .56366E-04    .29205E-04
  20  Prefactor     .10000E-03    62.854       -.34093E-04** at limit **
  21  Prefactor     26.298        35.974       -.18371E-04    .49267E-06
  22  Prefactor     .10000E-03    4.8523        .64452E-07** at limit **
  23  Prefactor     45.403        44.264       -.28993E-04   -.11122E-05
  24  Prefactor     1.2185        91.435        .12220E-04   -.11202E-03
  25  norm          .10000E-03    .64513        .77066E-07** at limit **
  26  Prefactor     .10000E-03    36.063        .29912E-04** at limit **
  27  Normalizat    .70052        .27221        .10470E-05   -.10922E-04
  28  Prefactor     1.3295        .14919        .96089E-07    .78672E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 28.6117
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 3.09975
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 28.7113
  Prefactor  = 21.7244
  Prefactor  = 25.6774
  Prefactor  = 0.0001
  Prefactor  = 12.6065
  Prefactor  = 0.0001
  norm       = 0.666916
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 12.7101
  Prefactor  = 26.7767
  Prefactor  = 0.0001
  Prefactor  = 26.2983
  Prefactor  = 0.0001
  Prefactor  = 45.4028
  Prefactor  = 1.21849
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.700523
  Prefactor  = 1.32955
 **********
 **   18 **HESSE 
 **********

 FCN=   7846.102     FROM HESSE     STATUS=OK           521 CALLS     3968 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          28.612        27.334        .74899E-04   -1.4638    
   3  Prefactor     .10000E-03    6.2894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.3034        .30435E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.0998        2.5815        .12594E-03   -1.5356    
   6  Prefactor     .10000E-03    37.599        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    27.576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          28.711        19.928        .74769E-04   -1.4636    
   9  Prefactor     21.724        26.773        .85911E-04   -1.4775    
  10  Prefactor     25.677        27.813        .79060E-04   -1.4694    
  11  Prefactor     .10000E-03    10.991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     12.607        31.945        .11277E-03   -1.4998    
  13  Prefactor     .10000E-03    21.865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .66692        .23649        .24152E-04   -1.5545    
  15  norm          .10000E-03    2.9891        .29245E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.9101        .11955E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    26.049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          12.710        7.5512        .11237E-03   -1.4995    
  19  Prefactor     26.777        45.919        .77477E-04   -1.4673    
  20  Prefactor     .10000E-03    63.040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     26.298        35.976        .78092E-04   -1.4682    
  22  Prefactor     .10000E-03    4.8931        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     45.403        44.239        .59483E-04   -1.4359    
  24  Prefactor     1.2185        94.060        .42261E-03   -1.5487    
  25  norm          .10000E-03    .64837        .69475E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    36.079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .70052        .29811        .43000E-03   -1.0387    
  28  Prefactor     1.3295        .16649        .19310E-03   -.82433    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.91729e-10
Minuit parameter uncertainties:
  1  1.22147e-05
  2  27.3458
  3  7.56023e-06
  4  0.00025835
  5  2.58157
  6  1.29035e-05
  7  1.49499e-06
  8  19.9325
  9  26.788
  10  27.8267
  11  8.61817e-05
  12  31.9883
  13  0.00010694
  14  0.236487
  15  2.26861e-06
  16  1.6936e-07
  17  6.50203e-06
  18  7.55174
  19  45.9799
  20  7.30694e-05
  21  36.0061
  22  2.79787e-06
  23  44.271
  24  21.4456
  25  7.28183e-06
  26  8.48632e-06
  27  0.298802
  28  0.166561
Done.

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

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  6.669e-01  2.365e-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.330e+00  1.666e-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.005e-01  2.988e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 20.31
Ra Dec: 226.103 10.498
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 1.62e-07 +/- 5.75e-08
Energy Flux (Fixed Index): 6.58e-05 +/- 2.33e-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) = 7844.96924774
delta logL = 1.13268384615

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7844.91708173
delta logL = 1.18484985374

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .64944       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8432       1.0000          .0000       5.0000    
     3 'Normalizat'    .51980       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3979       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=   7844.917     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      239 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .64961        2.1842        .42992E-02    .55772E-02
   2  alpha         2.8432        3.8974        .25703        .28411E-04
   3  Normalizat    .51967        .13980        .11123        .74682E-04
   4  Prefactor     1.3981        .61874E-01    .31091E-01   -.57214E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.649607
  alpha      = 2.84316
  Normalizat = 0.519668
  Prefactor  = 1.39807
 **********
 **   18 **HESSE 
 **********

 FCN=   7844.917     FROM HESSE     STATUS=OK            33 CALLS      272 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .64961        .25493        .19092E-04   -1.5547    
   2  alpha         2.8432        .49771        .10542E-01    .13770    
   3  Normalizat    .51967        .29685        .49308E-03   -1.1151    
   4  Prefactor     1.3981        .17135        .18878E-03   -.80436    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.3942e-10
Minuit parameter uncertainties:
  1  0.25493
  2  0.501118
  3  0.297764
  4  0.171417
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/7867': 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) = 7844.91707991
delta logL = 1.18485167343

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  6.496e-01  2.549e-01  1.000e-04  1.000e+04 ( 1.000e-10)
201        alpha:  2.843e+00  5.011e-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.398e+00  1.714e-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:  5.197e-01  2.978e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 23.43
Ra Dec: 226.103 10.498
Photon Index (Free Index): 2.84 +/- 0.50
Photon Flux (Free Index): 3.03e-07 +/- 1.16e-07
Energy Flux (Free Index): 6.67e-05 +/- 1.92e-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/7867/cmap_HighResolution_595728001_595987201_4FGL_J1504.4+1029_daily_bin1375.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.62e-07', energy_flux2='6.67e-05', photon_flux_error='5.75e-08', dlogl='1.18e+00', energy_flux='6.58e-05', photon_flux2='3.03e-07', job_status='DONE', time_completed='2021-09-10 22:00:30.459741', photon_index_error2='0.50', photon_index2='2.84', ts='20.31', fit_tolerance='1e-08', GAL='1.33', photon_index_error='0.00', energy_flux_error2='1.92e-05', EG='0.70', time_epoch_completed='1631336430.46', return_code='0', job_id='7867', GAL2='1.40', EG2='0.52', return_code2='0', energy_flux_error='2.33e-05', photon_flux_error2='1.16e-07', ts2='23.43', photon_index='2.12' WHERE bin_id='1375' AND source_name='4FGL J1504.4+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 22:00:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0166>
Subject: Job 7867: <4FGL_J1504.4+1029_daily_bin1375> in cluster <slac> Done

Job <4FGL_J1504.4+1029_daily_bin1375> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 10 21:46:15 2021
Job was executed on host(s) <bullet0166>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 21:46:17 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:17 2021
Terminated at Fri Sep 10 22:00:31 2021
Results reported at Fri Sep 10 22:00:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_daily_bin1375 226.103 10.4978 595728001 595987201 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 :                                   659.41 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             283.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   853 sec.
    Turnaround time :                            856 sec.

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

