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


Performing analysis on: 4FGL_J1504.4+1029_daily_bin1324
RA = 226.103, Dec = 10.4978
tmin = 582508801, tmax = 582768001
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='7793', job_status='RUN', time_executed='2021-09-10 21:50:07.847320', time_epoch_executed='1631335807.85' WHERE source_name='4FGL J1504.4+1029' and cadence='daily' and bin_id='1324'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/7793

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/7793/ft1_4FGL_J1504.4+1029_daily_bin1324.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/7793/ft2_4FGL_J1504.4+1029_daily_bin1324.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/7793/ft1_4FGL_J1504.4+1029_daily_bin1324.fits outfile=/scratch/kocevski/7793/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin1324.fits ra=226.103 dec=10.4978 rad=12.0 tmin=582508801.0 tmax=582768001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.68
user 3.45
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/7793/ft2_4FGL_J1504.4+1029_daily_bin1324.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/7793/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin1324.fits evtable="EVENTS" outfile="/scratch/kocevski/7793/ft1_filtered_4FGL_J1504.4+1029_daily_bin1324.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/7793/ft1_filtered_4FGL_J1504.4+1029_daily_bin1324.fits" evtable="EVENTS" scfile=/scratch/kocevski/7793/ft2_4FGL_J1504.4+1029_daily_bin1324.fits sctable="SC_DATA" outfile=/scratch/kocevski/7793/ltcube_582508801_582768001_4FGL_J1504.4+1029_daily_bin1324.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/7793/ft2_4FGL_J1504.4+1029_daily_bin1324.fits
.....................!
real 11.86
user 11.51
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/7793/ft1_filtered_4FGL_J1504.4+1029_daily_bin1324.fits evtable="EVENTS" scfile=/scratch/kocevski/7793/ft2_4FGL_J1504.4+1029_daily_bin1324.fits sctable="SC_DATA" expcube=/scratch/kocevski/7793/ltcube_582508801_582768001_4FGL_J1504.4+1029_daily_bin1324.fits outfile=/scratch/kocevski/7793/expmap_582508801_582768001_4FGL_J1504.4+1029_daily_bin1324.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/7793/ltcube_582508801_582768001_4FGL_J1504.4+1029_daily_bin1324.fits
.....................!
real 190.25
user 184.91
sys 4.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/7793/ft1_filtered_4FGL_J1504.4+1029_daily_bin1324.fits scfile=/scratch/kocevski/7793/ft2_4FGL_J1504.4+1029_daily_bin1324.fits outfile=/scratch/kocevski/7793/cmap_582508801_582768001_4FGL_J1504.4+1029_daily_bin1324.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.55
user 0.37
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.927       1.0000         .10000E-03   10000.    
     2 'norm      '    16.980       1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.524       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.0510       1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.884       1.0000         .10000E-03   10000.    
     8 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.5485       1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.919       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .35054       1.0000         .10000E-03   10000.    
    15 'norm      '    .89495       1.0000         .10000E-03   10000.    
    16 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    19.377       1.0000         .10000E-03   10000.    
    25 'norm      '    6.3146       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0751       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .91241       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=   6754.874     FROM MIGRAD    STATUS=CONVERGED    666 CALLS     3452 TOTAL
                     EDM=   .98E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.917        33.356        .63065E-06   -.12504E-03
   2  norm          16.980        17.416        .82400E-08   -.88386E-05
   3  Prefactor     15.523        10.520       -.12159E-05   -.43780E-04
   4  Prefactor     2.0511        7.4341        .10185E-04   -.11052E-03
   5  norm          .10000E-03    1.4816       -.13269E-07** at limit **
   6  Prefactor     .10001E-03    66.228        .86043E-06** at limit **
   7  Prefactor     15.906        26.289       -.23699E-06    .16301E-03
   8  norm          .10002E-03    17.171        .39298E-05** at limit **
   9  Prefactor     .10000E-03    9.5526       -.10858E-06** at limit **
  10  Prefactor     2.5464        33.111        .12075E-05   -.52258E-06
  11  Prefactor     17.919        16.531        .86628E-07    .13140E-04
  12  Prefactor     .10000E-03    17.058       -.20831E-06** at limit **
  13  Prefactor     .10000E-03    26.263        .24052E-06** at limit **
  14  norm          .35051        .16717        .12359E-07   -.40826E-03
  15  norm          .89482        2.5187        .57487E-06   -.38462E-04
  16  norm          .10000E-03    8.2897       -.59184E-07** at limit **
  17  norm          .10000E-03    15.289       -.30725E-06** at limit **
  18  norm          .10000E-03    2.1251       -.39192E-07** at limit **
  19  Prefactor     .10000E-03    23.042        .34776E-06** at limit **
  20  Prefactor     .10000E-03    26.340        .20736E-06** at limit **
  21  Prefactor     .10000E-03    12.140        .26272E-06** at limit **
  22  Prefactor     .10000E-03    3.1609       -.14912E-07** at limit **
  23  Prefactor     .10000E-03    19.489        .11358E-06** at limit **
  24  Prefactor     19.380        25.243        .21890E-06    .31504E-04
  25  norm          6.3148        3.5348        .58542E-07   -.26015E-04
  26  Prefactor     .10001E-03    38.293       -.12659E-05** at limit **
  27  Normalizat    1.0753        .22121       -.14673E-05   -.92976E-04
  28  Prefactor     .91227        .12189       -.25772E-06   -.26105E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.9169
  norm       = 16.9795
  Prefactor  = 15.5232
  Prefactor  = 2.05106
  norm       = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 15.9059
  norm       = 0.000100016
  Prefactor  = 0.0001
  Prefactor  = 2.54642
  Prefactor  = 17.9191
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.350511
  norm       = 0.894824
  norm       = 0.0001
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.3799
  norm       = 6.31477
  Prefactor  = 0.000100014
  Normalizat = 1.07532
  Prefactor  = 0.912265
 **********
 **   18 **HESSE 
 **********

 FCN=   6754.874     FROM HESSE     STATUS=OK           513 CALLS     3965 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.917        33.500        .77202E-04   -1.4670    
   2  norm          16.980        17.416        .97196E-04   -1.4884    
   3  Prefactor     15.523        10.531        .50827E-03   -1.4920    
   4  Prefactor     2.0511        7.4552        .14432E-02   -1.5422    
   5  norm          .10000E-03    1.4928        .97686E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    66.618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     15.906        26.237        .10050E-03   -1.4910    
   8  norm          .10002E-03    17.749        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.5652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.5464        33.168        .25578E-03   -1.5389    
  11  Prefactor     17.919        16.578        .94615E-04   -1.4861    
  12  Prefactor     .10000E-03    17.102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    26.322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .35051        .16580        .22126E-04   -1.5590    
  15  norm          .89482        2.5213        .20046E-03   -1.5519    
  16  norm          .10000E-03    8.4992        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    15.316        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.1372        .11682E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    23.126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    26.405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    12.176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.1930        .14267E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    19.504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     19.380        25.287        .90988E-04   -1.4827    
  25  norm          6.3148        3.5340        .11212E-03   -1.5205    
  26  Prefactor     .10001E-03    38.796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.0753        .26987        .30659E-03   -.90548    
  28  Prefactor     .91227        .14959        .19090E-03   -.95714    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.89975e-09
Minuit parameter uncertainties:
  1  33.5239
  2  17.4209
  3  10.5323
  4  7.45854
  5  1.06665e-06
  6  0.00136754
  7  26.2561
  8  0.00106592
  9  5.77599e-05
  10  18.3925
  11  16.5823
  12  0.000146212
  13  0.000263385
  14  0.165799
  15  2.52158
  16  3.11006e-05
  17  0.000214939
  18  1.27286e-06
  19  0.000381024
  20  0.000262597
  21  0.000196595
  22  8.81131e-07
  23  0.000113925
  24  25.3006
  25  3.53407
  26  0.00147359
  27  0.270217
  28  0.149656
Done.

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

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  3.505e-01  1.658e-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:  9.123e-01  1.497e-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.075e+00  2.702e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.69
Ra Dec: 226.103 10.498
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 8.53e-08 +/- 4.03e-08
Energy Flux (Fixed Index): 3.46e-05 +/- 1.63e-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) = 6754.84059337
delta logL = 0.0331020507974

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6754.83908889
delta logL = 0.0346065301555

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .34383       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0131       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0843       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90930       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=   6754.839     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      198 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .34383        .19703        .50228E-02    .42714E-03
   2  alpha         2.0132        .44546        .30038       -.20001E-04
   3  Normalizat    1.0844        .20934        .69045E-01    .13269E-04
   4  Prefactor     .90924        .12131        .45123E-01    .61199E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.343833
  alpha      = 2.01315
  Normalizat = 1.08436
  Prefactor  = 0.909236
 **********
 **   18 **HESSE 
 **********

 FCN=   6754.839     FROM HESSE     STATUS=OK            33 CALLS      231 TOTAL
                     EDM=   .36E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .34383        .16823        .22311E-04   -1.5591    
   2  alpha         2.0132        .41682        .12189E-01   -.19599    
   3  Normalizat    1.0844        .25552        .30549E-03   -.90256    
   4  Prefactor     .90924        .14766        .19119E-03   -.95819    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.5868e-13
Minuit parameter uncertainties:
  1  0.168231
  2  0.418852
  3  0.255812
  4  0.147728
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/7793': 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) = 6754.83908875
delta logL = 0.0346066729653

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  3.438e-01  1.682e-01  1.000e-04  1.000e+04 ( 1.000e-10)
201        alpha:  2.013e+00  4.189e-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:  9.092e-01  1.477e-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.084e+00  2.558e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.74
Ra Dec: 226.103 10.498
Photon Index (Free Index): 2.01 +/- 0.42
Photon Flux (Free Index): 7.75e-08 +/- 4.71e-08
Energy Flux (Free Index): 3.66e-05 +/- 1.96e-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/7793/cmap_HighResolution_582508801_582768001_4FGL_J1504.4+1029_daily_bin1324.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.53e-08', energy_flux2='3.66e-05', photon_flux_error='4.03e-08', dlogl='3.46e-02', energy_flux='3.46e-05', photon_flux2='7.75e-08', job_status='DONE', time_completed='2021-09-10 22:00:45.313084', photon_index_error2='0.42', photon_index2='2.01', ts='12.69', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='1.96e-05', EG='1.08', time_epoch_completed='1631336445.31', return_code='0', job_id='7793', GAL2='0.91', EG2='1.08', return_code2='0', energy_flux_error='1.63e-05', photon_flux_error2='4.71e-08', ts2='12.74', photon_index='2.12' WHERE bin_id='1324' AND source_name='4FGL J1504.4+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 22:00:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 7793: <4FGL_J1504.4+1029_daily_bin1324> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_daily_bin1324 226.103 10.4978 582508801 582768001 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.01 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             290.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   874 sec.
    Turnaround time :                            877 sec.

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

