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


Performing analysis on: 4FGL_J1504.4+1029_daily_bin1030
RA = 226.103, Dec = 10.4978
tmin = 506304001, tmax = 506563201
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='3935', job_status='RUN', time_executed='2021-09-10 21:38:32.727858', time_epoch_executed='1631335112.73' WHERE source_name='4FGL J1504.4+1029' and cadence='daily' and bin_id='1030'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/3935

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/3935/ft1_4FGL_J1504.4+1029_daily_bin1030.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/3935/ft2_4FGL_J1504.4+1029_daily_bin1030.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/3935/ft1_4FGL_J1504.4+1029_daily_bin1030.fits outfile=/scratch/kocevski/3935/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin1030.fits ra=226.103 dec=10.4978 rad=12.0 tmin=506304001.0 tmax=506563201.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.46
user 3.25
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/3935/ft1_filtered_4FGL_J1504.4+1029_daily_bin1030.fits" evtable="EVENTS" scfile=/scratch/kocevski/3935/ft2_4FGL_J1504.4+1029_daily_bin1030.fits sctable="SC_DATA" outfile=/scratch/kocevski/3935/ltcube_506304001_506563201_4FGL_J1504.4+1029_daily_bin1030.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/3935/ft2_4FGL_J1504.4+1029_daily_bin1030.fits
.....................!
real 12.03
user 11.62
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/3935/ft1_filtered_4FGL_J1504.4+1029_daily_bin1030.fits evtable="EVENTS" scfile=/scratch/kocevski/3935/ft2_4FGL_J1504.4+1029_daily_bin1030.fits sctable="SC_DATA" expcube=/scratch/kocevski/3935/ltcube_506304001_506563201_4FGL_J1504.4+1029_daily_bin1030.fits outfile=/scratch/kocevski/3935/expmap_506304001_506563201_4FGL_J1504.4+1029_daily_bin1030.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/3935/ltcube_506304001_506563201_4FGL_J1504.4+1029_daily_bin1030.fits
.....................!
real 191.92
user 186.15
sys 5.25

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/3935/ft1_filtered_4FGL_J1504.4+1029_daily_bin1030.fits scfile=/scratch/kocevski/3935/ft2_4FGL_J1504.4+1029_daily_bin1030.fits outfile=/scratch/kocevski/3935/cmap_506304001_506563201_4FGL_J1504.4+1029_daily_bin1030.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.58
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/3935/ft1_filtered_4FGL_J1504.4+1029_daily_bin1030.fits scfile=/scratch/kocevski/3935/ft2_4FGL_J1504.4+1029_daily_bin1030.fits outfile=/scratch/kocevski/3935/cmap_HighResolution_506304001_506563201_4FGL_J1504.4+1029_daily_bin1030.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.62
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.127       1.0000         .10000E-03   10000.    
     2 'norm      '    .10045E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.9022       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.0448       1.0000         .10000E-03   10000.    
     5 'norm      '    10.861       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10414E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.4098       1.0000         .10000E-03   10000.    
    15 'norm      '    4.0726       1.0000         .10000E-03   10000.    
    16 'norm      '    .14173E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    6.8021       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .53567E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11867E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.7611       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .41643E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.3163       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0170       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=   7435.741     FROM MIGRAD    STATUS=CONVERGED   1229 CALLS     4006 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.060        31.937        .11503E-03   -.13935E-04
   2  norm          .10000E-03    8.2540        .18142E-02** at limit **
   3  Prefactor     3.9026        7.4167        .20424E-03   -.20929E-04
   4  Prefactor     8.0441        7.7474        .14136E-03    .75920E-04
   5  norm          10.861        4.5013        .11349E-03    .51491E-04
   6  Prefactor     .10001E-03    203.02        .18142E-02** at limit **
   7  Prefactor     .10000E-03    17.984        .18142E-02** at limit **
   8  norm          .10000E-03    9.5991        .18142E-02** at limit **
   9  Prefactor     .10000E-03    8.5070        .18142E-02** at limit **
  10  Prefactor     .10000E-03    16.990        .18142E-02** at limit **
  11  Prefactor     .10000E-03    3.6995        .16192E-02** at limit **
  12  Prefactor     .10000E-03    30.252        .18142E-02** at limit **
  13  Prefactor     .10000E-03    15.441        .18142E-02** at limit **
  14  norm          1.4098        .27534        .19017E-04    .21559E-02
  15  norm          4.0725        2.7548        .11101E-03    .85104E-04
  16  norm          .10013E-03    34.662        .37607E-02** at limit **
  17  norm          .10000E-03    13.362        .18142E-02** at limit **
  18  norm          6.8021        4.6730        .14756E-03   -.12481E-04
  19  Prefactor     .10002E-03    26.195        .13378    ** at limit **
  20  Prefactor     .10000E-03    12.948        .18142E-02** at limit **
  21  Prefactor     .10000E-03    60.366        .18142E-02** at limit **
  22  Prefactor     2.7611        4.1044        .20718E-03   -.83572E-04
  23  Prefactor     .10000E-03    33.731        .18142E-02** at limit **
  24  Prefactor     .10000E-03    8.5531        .18142E-02** at limit **
  25  norm          .10000E-03    .99774        .83632E-03** at limit **
  26  Prefactor     .10000E-03    525.85        .42490E-03** at limit **
  27  Normalizat    1.3163        .28032        .31746E-03    .33469E-03
  28  Prefactor     1.0170        .16311        .21253E-03    .97144E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.0596
  norm       = 0.0001
  Prefactor  = 3.90259
  Prefactor  = 8.04408
  norm       = 10.8614
  Prefactor  = 0.000100015
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.40983
  norm       = 4.0725
  norm       = 0.000100127
  norm       = 0.0001
  norm       = 6.80206
  Prefactor  = 0.000100022
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.76114
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.31633
  Prefactor  = 1.01701
 **********
 **   18 **HESSE 
 **********

 FCN=   7435.741     FROM HESSE     STATUS=OK           501 CALLS     4507 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.060        31.936        .46012E-05   -1.5013    
   2  norm          .10000E-03    8.2540        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.9026        7.4158        .81697E-05   -1.5313    
   4  Prefactor     8.0441        7.7466        .56544E-05   -1.5141    
   5  norm          10.861        4.5013        .45395E-05   -1.5049    
   6  Prefactor     .10001E-03    203.12        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    17.985        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    9.6000        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.5077        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    16.991        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.6996        .32384E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    30.268        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    15.442        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.4098        .27530        .38034E-05   -1.5470    
  15  norm          4.0725        2.7547        .44404E-05   -1.5304    
  16  norm          .10013E-03    35.685        .15043E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    13.362        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.8021        4.6729        .59023E-05   -1.5186    
  19  Prefactor     .10002E-03    25.906        .13499       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    12.948        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    60.388        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.7611        4.1044        .82872E-05   -1.5376    
  23  Prefactor     .10000E-03    33.735        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    8.5532        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    .99784        .16726E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    525.89        .84980E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.3163        .28061        .63492E-04   -.83080    
  28  Prefactor     1.0170        .16328        .85010E-05   -.92164    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.19957e-09
Minuit parameter uncertainties:
  1  31.9817
  2  6.42899e-06
  3  7.41759
  4  7.74752
  5  4.50142
  6  0.00347996
  7  7.12678e-05
  8  1.67827e-05
  9  2.87424e-06
  10  7.3235e-06
  11  1.55002e-06
  12  0.000184827
  13  0.000103653
  14  0.275296
  15  2.75475
  16  0.00426411
  17  1.31232e-05
  18  4.67319
  19  0.0015211
  20  4.31173e-05
  21  0.000118551
  22  4.10486
  23  4.56449e-06
  24  3.38679e-06
  25  2.98408e-06
  26  0.000519333
  27  0.280934
  28  0.163362
Done.

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

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  1.410e+00  2.753e-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.017e+00  1.634e-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.316e+00  2.809e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 87.92
Ra Dec: 226.103 10.498
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 3.43e-07 +/- 6.70e-08
Energy Flux (Fixed Index): 1.39e-04 +/- 2.71e-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) = 7435.74054272
delta logL = 0.000164689558005

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7435.74053213
delta logL = 0.000175280994881

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4103       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1207       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3173       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0167       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=   7435.741     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      188 TOTAL
                     EDM=   .47E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4102        .31589        .43038E-02    .47736E-03
   2  alpha         2.1207        .22380        .14888        .28193E-04
   3  Normalizat    1.3173        .22748        .71724E-01    .12070E-04
   4  Prefactor     1.0167        .13469        .42487E-01    .98283E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.41017
  alpha      = 2.12066
  Normalizat = 1.31732
  Prefactor  = 1.01666
 **********
 **   18 **HESSE 
 **********

 FCN=   7435.741     FROM HESSE     STATUS=OK            31 CALLS      219 TOTAL
                     EDM=   .42E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4102        .27550        .19032E-04   -1.5470    
   2  alpha         2.1207        .19930        .64493E-03   -.15232    
   3  Normalizat    1.3173        .27376        .31737E-03   -.83051    
   4  Prefactor     1.0167        .16145        .21256E-03   -.92176    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.16497e-12
Minuit parameter uncertainties:
  1  0.275504
  2  0.199521
  3  0.274064
  4  0.16153
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/3935': 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) = 7435.74053197
delta logL = 0.000175436547579

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  1.410e+00  2.755e-01  1.000e-04  1.000e+04 ( 1.000e-10)
201        alpha:  2.121e+00  1.995e-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.017e+00  1.615e-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.317e+00  2.741e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 87.55
Ra Dec: 226.103 10.498
Photon Index (Free Index): 2.12 +/- 0.20
Photon Flux (Free Index): 3.42e-07 +/- 8.04e-08
Energy Flux (Free Index): 1.39e-04 +/- 3.23e-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/3935/cmap_HighResolution_506304001_506563201_4FGL_J1504.4+1029_daily_bin1030.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.43e-07', energy_flux2='1.39e-04', photon_flux_error='6.70e-08', dlogl='1.75e-04', energy_flux='1.39e-04', photon_flux2='3.42e-07', job_status='DONE', time_completed='2021-09-10 21:50:36.239827', photon_index_error2='0.20', photon_index2='2.12', ts='87.92', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='3.23e-05', EG='1.32', time_epoch_completed='1631335836.24', return_code='0', job_id='3935', GAL2='1.02', EG2='1.32', return_code2='0', energy_flux_error='2.71e-05', photon_flux_error2='8.04e-08', ts2='87.55', photon_index='2.12' WHERE bin_id='1030' AND source_name='4FGL J1504.4+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 21:50:36 PDT 2021


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

Job <4FGL_J1504.4+1029_daily_bin1030> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep 10 21:36:33 2021
Job was executed on host(s) <bullet0066>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 21:36:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 21:36:34 2021
Terminated at Fri Sep 10 21:50:37 2021
Results reported at Fri Sep 10 21:50:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_daily_bin1030 226.103 10.4978 506304001 506563201 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 :                                   719.02 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   842 sec.
    Turnaround time :                            844 sec.

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

