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


Performing analysis on: 4FGL_J1504.4+1029_daily_bin1589
RA = 226.103, Dec = 10.4978
tmin = 651196801, tmax = 651456001
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='9312', job_status='RUN', time_executed='2021-09-10 21:54:39.989426', time_epoch_executed='1631336079.99' WHERE source_name='4FGL J1504.4+1029' and cadence='daily' and bin_id='1589'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/9312

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/9312/ft1_4FGL_J1504.4+1029_daily_bin1589.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/9312/ft2_4FGL_J1504.4+1029_daily_bin1589.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/9312/ft1_4FGL_J1504.4+1029_daily_bin1589.fits outfile=/scratch/kocevski/9312/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin1589.fits ra=226.103 dec=10.4978 rad=12.0 tmin=651196801.0 tmax=651456001.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.59
user 3.36
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/9312/ft1_filtered_4FGL_J1504.4+1029_daily_bin1589.fits evtable="EVENTS" scfile=/scratch/kocevski/9312/ft2_4FGL_J1504.4+1029_daily_bin1589.fits sctable="SC_DATA" expcube=/scratch/kocevski/9312/ltcube_651196801_651456001_4FGL_J1504.4+1029_daily_bin1589.fits outfile=/scratch/kocevski/9312/expmap_651196801_651456001_4FGL_J1504.4+1029_daily_bin1589.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/9312/ltcube_651196801_651456001_4FGL_J1504.4+1029_daily_bin1589.fits
.....................!
real 192.69
user 187.68
sys 4.68

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/9312/ft1_filtered_4FGL_J1504.4+1029_daily_bin1589.fits scfile=/scratch/kocevski/9312/ft2_4FGL_J1504.4+1029_daily_bin1589.fits outfile=/scratch/kocevski/9312/cmap_651196801_651456001_4FGL_J1504.4+1029_daily_bin1589.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.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    54.953       1.0000         .10000E-03   10000.    
     2 'norm      '    .10214E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .62669       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10589E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.3187       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    35.005       1.0000         .10000E-03   10000.    
     8 'norm      '    .10073E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.8023       1.0000         .10000E-03   10000.    
    16 'norm      '    .72723       1.0000         .10000E-03   10000.    
    17 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11159E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.1550       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.5262       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .98505       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .31169E-02   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .91636       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1879       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=   7159.990     FROM MIGRAD    STATUS=CONVERGED    693 CALLS     3489 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     54.956        48.022       -.78845E-06    .10675E-04
   2  norm          .10000E-03    89.913       -.91600E-06** at limit **
   3  Prefactor     .62602        6.4922       -.28205E-06    .37229E-05
   4  Prefactor     .10000E-03    3.3590       -.37099E-06** at limit **
   5  norm          5.3185        3.3917       -.72298E-07    .39087E-04
   6  Prefactor     .10000E-03    18.517       -.92945E-07** at limit **
   7  Prefactor     35.012        32.435       -.15917E-06   -.49052E-05
   8  norm          .10000E-03    12.739       -.31569E-06** at limit **
   9  Prefactor     .10000E-03    4.9854       -.34150E-07** at limit **
  10  Prefactor     .10000E-03    10.012       -.16380E-06** at limit **
  11  Prefactor     .10000E-03    6.5502       -.11327E-06** at limit **
  12  Prefactor     .10000E-03    8.1945       -.58336E-07** at limit **
  13  Prefactor     .10000E-03    18.600       -.13349E-06** at limit **
  14  norm          .10000E-03    .47791E-01   -.45047E-07** at limit **
  15  norm          3.8021        2.4965       -.11844E-06   -.29189E-04
  16  norm          .72676        6.7050        .59793E-06   -.23491E-05
  17  norm          .10000E-03    19.190       -.34587E-07** at limit **
  18  norm          .10000E-03    1.1338       -.27117E-07** at limit **
  19  Prefactor     .10000E-03    14.579       -.86419E-07** at limit **
  20  Prefactor     .10000E-03    35.615       -.36912E-07** at limit **
  21  Prefactor     .10000E-03    81.635       -.21090E-05** at limit **
  22  Prefactor     3.1533        6.4449        .54748E-08   -.45978E-04
  23  Prefactor     3.5207        76.776       -.20199E-05   -.18396E-05
  24  Prefactor     .10000E-03    20.362        .58901E-07** at limit **
  25  norm          .98568        1.6289        .53161E-06    .87993E-03
  26  Prefactor     .10002E-03    576.27        .17454E-04** at limit **
  27  Normalizat    .91643        .23465        .21760E-05   -.11946E-03
  28  Prefactor     1.1880        .13564        .39103E-06   -.15910E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 54.9559
  norm       = 0.0001
  Prefactor  = 0.626018
  Prefactor  = 0.0001
  norm       = 5.31848
  Prefactor  = 0.0001
  Prefactor  = 35.0116
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.80209
  norm       = 0.726758
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.15333
  Prefactor  = 3.52071
  Prefactor  = 0.0001
  norm       = 0.985679
  Prefactor  = 0.000100017
  Normalizat = 0.916427
  Prefactor  = 1.18795
 **********
 **   18 **HESSE 
 **********

 FCN=   7159.990     FROM HESSE     STATUS=OK           515 CALLS     4004 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     54.956        48.090        .54110E-04   -1.4224    
   2  norm          .10000E-03    91.094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .62602        6.5064        .41737E-03   -1.5550    
   4  Prefactor     .10000E-03    10.057        .29866E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.3185        3.3885        .12085E-03   -1.5247    
   6  Prefactor     .10000E-03    18.520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     35.012        32.428        .67733E-04   -1.4524    
   8  norm          .10000E-03    12.769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.9877        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.031        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.5733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.2098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    18.627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .56347E-01    .36150E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.8021        2.4899        .10325E-03   -1.5318    
  16  norm          .72676        6.7006        .21316E-02   -1.5537    
  17  norm          .10000E-03    19.194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.1358        .87988E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    14.592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    35.681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    83.635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.1533        6.4379        .11410E-02   -1.5353    
  23  Prefactor     3.5207        77.008        .21527E-03   -1.5333    
  24  Prefactor     .10000E-03    20.391        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .98568        1.3654        .14787E-02   -1.5509    
  26  Prefactor     .10002E-03    561.92        .19787E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .91643        .27463        .35055E-03   -.95885    
  28  Prefactor     1.1880        .16169        .18574E-03   -.86703    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.113e-09
Minuit parameter uncertainties:
  1  48.1235
  2  1.80569e-05
  3  4.03663
  4  9.27995e-05
  5  3.38866
  6  4.93929e-06
  7  32.4444
  8  6.57509e-07
  9  2.72652e-06
  10  1.14948e-05
  11  8.68049e-06
  12  7.04176e-06
  13  1.5368e-05
  14  6.76553e-07
  15  2.48995
  16  4.41382
  17  2.91786e-06
  18  1.20162e-06
  19  1.12901e-05
  20  4.4272e-05
  21  0.000188339
  22  6.43932
  23  32.9794
  24  2.46489e-05
  25  1.36548
  26  0.00621426
  27  0.275052
  28  0.161758
Done.

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

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  1.000e-04  6.766e-07  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.188e+00  1.618e-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:  9.164e-01  2.751e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 226.103 10.498
Photon Flux Upper Limit: 6.16e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.50e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/9312/likelihoodResults_651196801_651456001_4FGL_J1504.4+1029_daily_bin1589.txt

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): 102
logL (Free Index) = 7159.99094069
delta logL = -0.000626641603958

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7159.5951707
delta logL = 0.395143350357

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13211E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    4.7254       1.0000          .0000       5.0000    
     3 'Normalizat'    .83185       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2189       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7159.595     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      338 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .13214E-01    .88953        .11224E-03   -.33149E-01
   2  alpha         4.7251        4.0658        .76247E-01   -.55366E-04
   3  Normalizat    .83200        .23230        .36658E-03   -.77948E-03
   4  Prefactor     1.2189        .12518        .18369E-03   -.10065E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.013214
  alpha      = 4.72512
  Normalizat = 0.831997
  Prefactor  = 1.21886
 **********
 **   18 **HESSE 
 **********

 FCN=   7159.595     FROM HESSE     STATUS=OK            25 CALLS      363 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .13214E-01    .39704E-01    .44896E-05   -1.5685    
   2  alpha         4.7251        4.4727        .30499E-02    1.0974    
   3  Normalizat    .83200        .28363        .73317E-04   -.98893    
   4  Prefactor     1.2189        .16439        .36737E-04   -.85753    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.0336e-09
Minuit parameter uncertainties:
  1  0.0397038
  2  2.11556
  3  0.284142
  4  0.164463
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/9312': 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) = 7159.59517053
delta logL = 0.395143513256

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  1.321e-02  3.970e-02  1.000e-04  1.000e+04 ( 1.000e-10)
201        alpha:  4.725e+00  2.116e+00  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.219e+00  1.645e-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.320e-01  2.841e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 226.103 10.498

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/9312/cmap_HighResolution_651196801_651456001_4FGL_J1504.4+1029_daily_bin1589.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.50e-05', job_status='DONE', photon_flux_upper_limit='6.16e-08', time_completed='2021-09-10 22:06:57.072852', job_id='9312', GAL2='1.22', fit_tolerance='1e-08', EG2='0.83', EG='0.92', time_epoch_completed='1631336817.07', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.19', dlogl='3.95e-01', ts2='0.87', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='1589' AND source_name='4FGL J1504.4+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 22:06:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0286>
Subject: Job 9312: <4FGL_J1504.4+1029_daily_bin1589> in cluster <slac> Done

Job <4FGL_J1504.4+1029_daily_bin1589> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep 10 21:51:21 2021
Job was executed on host(s) <bullet0286>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 21:51:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 21:51:23 2021
Terminated at Fri Sep 10 22:06:57 2021
Results reported at Fri Sep 10 22:06:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_daily_bin1589 226.103 10.4978 651196801 651456001 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 :                                   728.09 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             276.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   934 sec.
    Turnaround time :                            936 sec.

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

