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


Performing analysis on: 4FGL_J1504.4+1029_daily_bin1171
RA = 226.103, Dec = 10.4978
tmin = 542851201, tmax = 543110401
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='5828', job_status='RUN', time_executed='2021-09-10 21:41:27.124278', time_epoch_executed='1631335287.12' WHERE source_name='4FGL J1504.4+1029' and cadence='daily' and bin_id='1171'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/5828

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

Retrieving the FT1 file...

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

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

Retrieving 4 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/5828/ft1_4FGL_J1504.4+1029_daily_bin1171.fits


Retrieving the FT1 file...

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

Retrieving 4 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/5828/ft2_4FGL_J1504.4+1029_daily_bin1171.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/5828/ft1_4FGL_J1504.4+1029_daily_bin1171.fits outfile=/scratch/kocevski/5828/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin1171.fits ra=226.103 dec=10.4978 rad=12.0 tmin=542851201.0 tmax=543110401.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 0.75
user 0.58
sys 0.15

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/5828/ft2_4FGL_J1504.4+1029_daily_bin1171.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/5828/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin1171.fits evtable="EVENTS" outfile="/scratch/kocevski/5828/ft1_filtered_4FGL_J1504.4+1029_daily_bin1171.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.46
user 0.30
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/5828/ft1_filtered_4FGL_J1504.4+1029_daily_bin1171.fits evtable="EVENTS" scfile=/scratch/kocevski/5828/ft2_4FGL_J1504.4+1029_daily_bin1171.fits sctable="SC_DATA" expcube=/scratch/kocevski/5828/ltcube_542851201_543110401_4FGL_J1504.4+1029_daily_bin1171.fits outfile=/scratch/kocevski/5828/expmap_542851201_543110401_4FGL_J1504.4+1029_daily_bin1171.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/5828/ltcube_542851201_543110401_4FGL_J1504.4+1029_daily_bin1171.fits
.....................!
real 192.80
user 187.70
sys 4.72

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/5828/ft1_filtered_4FGL_J1504.4+1029_daily_bin1171.fits scfile=/scratch/kocevski/5828/ft2_4FGL_J1504.4+1029_daily_bin1171.fits outfile=/scratch/kocevski/5828/cmap_542851201_543110401_4FGL_J1504.4+1029_daily_bin1171.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.51
user 0.35
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/5828/ft1_filtered_4FGL_J1504.4+1029_daily_bin1171.fits scfile=/scratch/kocevski/5828/ft2_4FGL_J1504.4+1029_daily_bin1171.fits outfile=/scratch/kocevski/5828/cmap_HighResolution_542851201_543110401_4FGL_J1504.4+1029_daily_bin1171.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.52
user 0.35
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10703E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10127E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.782       1.0000         .10000E-03   10000.    
     5 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .94072E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .47184E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10223E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    153.88       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .28607       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-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 '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1114       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .80808       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=   362.3779     FROM MIGRAD    STATUS=CONVERGED    647 CALLS     3338 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    183.02        .45320E-05** at limit **
   2  norm          .10000E-03    162.49        .36569E-04** at limit **
   3  Prefactor     .10000E-03    22.863        .10189E-05** at limit **
   4  Prefactor     13.792        29.956       -.87732E-06   -.11290E-03
   5  norm          .10000E-03    12.433       -.38980E-06** at limit **
   6  Prefactor     .10001E-03    1505.3       -.14327E-02** at limit **
   7  Prefactor     .10000E-03    277.37       -.74766E-05** at limit **
   8  norm          .10000E-03    87.136       -.72465E-05** at limit **
   9  Prefactor     .10000E-03    69.383       -.19282E-04** at limit **
  10  Prefactor     .10000E-03    62.932       -.72458E-05** at limit **
  11  Prefactor     .10000E-03    33.050       -.16508E-04** at limit **
  12  Prefactor     153.93        140.34        .41678E-04    .12545E-04
  13  Prefactor     .10000E-03    90.313       -.18712E-05** at limit **
  14  norm          .28696        .88074       -.30045E-06   -.25995E-03
  15  norm          .10000E-03    6.1378        .98093E-06** at limit **
  16  norm          .10000E-03    34.936        .11498E-04** at limit **
  17  norm          .10000E-03    204.32       -.39902E-04** at limit **
  18  norm          .10000E-03    13.612        .69921E-06** at limit **
  19  Prefactor     .10000E-03    70.983       -.20085E-04** at limit **
  20  Prefactor     .10000E-03    154.74        .44749E-04** at limit **
  21  Prefactor     .10000E-03    51.594        .37779E-04** at limit **
  22  Prefactor     .10000E-03    15.091       -.68683E-06** at limit **
  23  Prefactor     .10000E-03    130.90        .52389E-04** at limit **
  24  Prefactor     .10000E-03    70.078       -.19459E-04** at limit **
  25  norm          .10000E-03    6.1508        .12597E-05** at limit **
  26  Prefactor     .10000E-03    200.45       -.31226E-04** at limit **
  27  Normalizat    1.1100        .85276       -.10824E-05    .12997E-03
  28  Prefactor     .80786        .49234        .13588E-06    .16591E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.7917
  norm       = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 153.933
  Prefactor  = 0.0001
  norm       = 0.286956
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.11004
  Prefactor  = 0.807859
 **********
 **   18 **HESSE 
 **********

 FCN=   362.3779     FROM HESSE     STATUS=OK           495 CALLS     3833 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    183.05        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    162.49        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    22.863        .88984E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     13.792        29.959        .53947E-03   -1.4965    
   5  norm          .10000E-03    12.435        .65608E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    1505.0        .18187E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    277.55        .21186E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    87.152        .17390E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    69.392        .15514E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    62.935        .14773E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    33.052        .10701E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     153.93        140.43        .16249E-03   -1.3220    
  13  Prefactor     .10000E-03    90.311        .17706E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .28696        .86708        .28843E-04   -1.5601    
  15  norm          .10000E-03    6.1429        .46087E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    34.939        .11001E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    204.32        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    13.615        .68647E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    70.983        .15692E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    154.76        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    51.594        .13374E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    15.096        .72283E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    130.94        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    70.078        .15591E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    6.1509        .46141E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    200.45        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.1100        1.0461        .28017E-03   -.89430    
  28  Prefactor     .80786        .60726        .18987E-03   -.99439    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.49193e-10
Minuit parameter uncertainties:
  1  0.000109586
  2  5.51859e-05
  3  1.08348e-06
  4  29.9916
  5  1.17051e-05
  6  0.00633551
  7  0.000465572
  8  7.82069e-05
  9  0.00034239
  10  1.17806e-05
  11  6.50066e-05
  12  140.737
  13  6.56542e-05
  14  0.86712
  15  2.49956e-06
  16  1.60052e-05
  17  6.41625e-06
  18  1.70481e-06
  19  1.16554e-05
  20  1.61989e-06
  21  6.028e-06
  22  2.60471e-07
  23  3.36155e-05
  24  2.09609e-07
  25  5.0705e-07
  26  2.44853e-07
  27  1.06664
  28  0.612403
Done.

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

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  2.870e-01  8.671e-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:  8.079e-01  6.124e-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.110e+00  1.067e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.14
Ra Dec: 226.103 10.498
Photon Flux Upper Limit: 6.92e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.80e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/5828/likelihoodResults_542851201_543110401_4FGL_J1504.4+1029_daily_bin1171.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): 0
logL (Free Index) = 362.064776267
delta logL = 0.313123725496

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 362.042758005
delta logL = 0.335141987915

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .23989       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.5605       1.0000          .0000       5.0000    
     3 'Normalizat'    .87972       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88375       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=   362.0428     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      201 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .23917        15.220        .25339E-02    .68031E-03
   2  alpha         3.5610        3.1011        .18382        .96828E-05
   3  Normalizat    .88232        .39283        .69574E-01   -.34542E-05
   4  Prefactor     .88245        .23272        .44798E-01   -.48090E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.239175
  alpha      = 3.56101
  Normalizat = 0.882318
  Prefactor  = 0.882451
 **********
 **   18 **HESSE 
 **********

 FCN=   362.0428     FROM HESSE     STATUS=OK            29 CALLS      230 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .23917        .54517        .11267E-04   -1.5610    
   2  alpha         3.5610        1.6281        .80770E-03    .43830    
   3  Normalizat    .88232        1.0446        .30783E-03   -.97084    
   4  Prefactor     .88245        .61148        .18153E-03   -.96757    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.88746e-11
Minuit parameter uncertainties:
  1  0.545182
  2  1.81698
  3  1.0701
  4  0.616316
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/5828': 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) = 362.042754166
delta logL = 0.335145826405

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  2.392e-01  5.452e-01  1.000e-04  1.000e+04 ( 1.000e-10)
201        alpha:  3.561e+00  1.817e+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:  8.825e-01  6.163e-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.823e-01  1.070e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.14
Ra Dec: 226.103 10.498

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/5828/cmap_HighResolution_542851201_543110401_4FGL_J1504.4+1029_daily_bin1171.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.80e-04', job_status='DONE', photon_flux_upper_limit='6.92e-07', time_completed='2021-09-10 21:46:32.109258', job_id='5828', GAL2='0.88', fit_tolerance='1e-08', EG2='0.88', EG='1.11', time_epoch_completed='1631335592.11', return_code2='0', ts='0.14', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='3.35e-01', ts2='0.88', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='1171' AND source_name='4FGL J1504.4+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 21:46:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 5828: <4FGL_J1504.4+1029_daily_bin1171> in cluster <slac> Done

Job <4FGL_J1504.4+1029_daily_bin1171> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 10 21:41:06 2021
Job was executed on host(s) <bullet0066>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 21:41:08 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 21:41:08 2021
Terminated at Fri Sep 10 21:46:32 2021
Results reported at Fri Sep 10 21:46:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_daily_bin1171 226.103 10.4978 542851201 543110401 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 :                                   307.84 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             346.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   324 sec.
    Turnaround time :                            326 sec.

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

