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


Performing analysis on: 4FGL_J1504.4+1029_daily_bin1129
RA = 226.103, Dec = 10.4978
tmin = 531964801, tmax = 532224001
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='5764', job_status='RUN', time_executed='2021-09-10 21:43:07.370939', time_epoch_executed='1631335387.37' WHERE source_name='4FGL J1504.4+1029' and cadence='daily' and bin_id='1129'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/5764

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/5764/ft1_4FGL_J1504.4+1029_daily_bin1129.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/5764/ft2_4FGL_J1504.4+1029_daily_bin1129.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/5764/ft1_4FGL_J1504.4+1029_daily_bin1129.fits outfile=/scratch/kocevski/5764/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin1129.fits ra=226.103 dec=10.4978 rad=12.0 tmin=531964801.0 tmax=532224001.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.52
user 3.27
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/5764/ft2_4FGL_J1504.4+1029_daily_bin1129.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/5764/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin1129.fits evtable="EVENTS" outfile="/scratch/kocevski/5764/ft1_filtered_4FGL_J1504.4+1029_daily_bin1129.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.50
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/5764/ft1_filtered_4FGL_J1504.4+1029_daily_bin1129.fits" evtable="EVENTS" scfile=/scratch/kocevski/5764/ft2_4FGL_J1504.4+1029_daily_bin1129.fits sctable="SC_DATA" outfile=/scratch/kocevski/5764/ltcube_531964801_532224001_4FGL_J1504.4+1029_daily_bin1129.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/5764/ft2_4FGL_J1504.4+1029_daily_bin1129.fits
.....................!
real 12.33
user 11.91
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/5764/ft1_filtered_4FGL_J1504.4+1029_daily_bin1129.fits evtable="EVENTS" scfile=/scratch/kocevski/5764/ft2_4FGL_J1504.4+1029_daily_bin1129.fits sctable="SC_DATA" expcube=/scratch/kocevski/5764/ltcube_531964801_532224001_4FGL_J1504.4+1029_daily_bin1129.fits outfile=/scratch/kocevski/5764/expmap_531964801_532224001_4FGL_J1504.4+1029_daily_bin1129.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/5764/ltcube_531964801_532224001_4FGL_J1504.4+1029_daily_bin1129.fits
.....................!
real 191.67
user 186.12
sys 4.49

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/5764/ft1_filtered_4FGL_J1504.4+1029_daily_bin1129.fits scfile=/scratch/kocevski/5764/ft2_4FGL_J1504.4+1029_daily_bin1129.fits outfile=/scratch/kocevski/5764/cmap_531964801_532224001_4FGL_J1504.4+1029_daily_bin1129.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/5764/ft1_filtered_4FGL_J1504.4+1029_daily_bin1129.fits scfile=/scratch/kocevski/5764/ft2_4FGL_J1504.4+1029_daily_bin1129.fits outfile=/scratch/kocevski/5764/cmap_HighResolution_531964801_532224001_4FGL_J1504.4+1029_daily_bin1129.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.55
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.1252       1.0000         .10000E-03   10000.    
     2 'norm      '    23.382       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.9646       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.6495       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10727E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11309E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.457       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .23602       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11240E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.3302       1.0000         .10000E-03   10000.    
    15 'norm      '    2.1762       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10495E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.9451       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10480E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.0963       1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.8876       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    6.2737       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .18932E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.3613       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0147       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=   8464.735     FROM MIGRAD    STATUS=CONVERGED   1277 CALLS     4065 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1219        72.331        .19847E-03   -.76758E-05
   2  norm          23.364        34.445        .82838E-04    .62307E-04
   3  Prefactor     8.9613        7.7151        .66933E-03   -.19526E-03
   4  Prefactor     .10000E-03    4.3258        .18142E-02** at limit **
   5  norm          2.6492        2.4986        .13696E-03    .12617E-04
   6  Prefactor     .10000E-03    165.59        .18142E-02** at limit **
   7  Prefactor     .10000E-03    13.004        .18142E-02** at limit **
   8  norm          .10000E-03    6.7514        .18142E-02** at limit **
   9  Prefactor     .10000E-03    22.526        .18142E-02** at limit **
  10  Prefactor     .10000E-03    20.718        .18142E-02** at limit **
  11  Prefactor     11.494        17.213        .11836E-03   -.27376E-03
  12  Prefactor     .11844E-03    29.490        .12187    ** at limit **
  13  Prefactor     .10000E-03    37.706        .18142E-02** at limit **
  14  norm          1.3301        .25967        .19748E-04    .13287E-02
  15  norm          2.1752        2.5845        .15163E-03   -.22238E-03
  16  norm          .10000E-03    1.6405        .11507E-02** at limit **
  17  norm          .10000E-03    13.327        .18142E-02** at limit **
  18  norm          .10000E-03    2.0484        .12790E-02** at limit **
  19  Prefactor     8.9392        28.757        .13401E-03   -.25280E-04
  20  Prefactor     .10000E-03    17.283        .18142E-02** at limit **
  21  Prefactor     .10000E-03    11.886        .18142E-02** at limit **
  22  Prefactor     5.0934        5.6410        .17810E-03    .38682E-04
  23  Prefactor     8.0755        92.477        .14277E-03    .93039E-04
  24  Prefactor     .10000E-03    6.6222        .18142E-02** at limit **
  25  norm          6.2703        3.9887        .14060E-03    .21508E-04
  26  Prefactor     .10000E-03    59.240        .18142E-02** at limit **
  27  Normalizat    1.3615        .28265        .33025E-03    .10183E-03
  28  Prefactor     1.0147        .15703        .21639E-03   -.24751E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.12186
  norm       = 23.364
  Prefactor  = 8.96131
  Prefactor  = 0.000100001
  norm       = 2.64919
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.4937
  Prefactor  = 0.000118437
  Prefactor  = 0.0001
  norm       = 1.33014
  norm       = 2.1752
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 8.93922
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.09344
  Prefactor  = 8.07549
  Prefactor  = 0.0001
  norm       = 6.27029
  Prefactor  = 0.0001
  Normalizat = 1.36147
  Prefactor  = 1.01473
 **********
 **   18 **HESSE 
 **********

 FCN=   8464.735     FROM HESSE     STATUS=OK           501 CALLS     4566 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.1219        72.320        .79388E-05   -1.5302    
   2  norm          23.364        34.459        .33135E-05   -1.4741    
   3  Prefactor     8.9613        7.7145        .26773E-04   -1.5109    
   4  Prefactor     .10000E-03    4.3272        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.6492        2.4986        .54784E-05   -1.5382    
   6  Prefactor     .10000E-03    165.64        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    13.005        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    6.7516        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    22.531        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    20.723        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     11.494        17.211        .47343E-05   -1.5030    
  12  Prefactor     .11844E-03    28.298        .12511       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    37.708        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.3301        .25967        .78993E-06   -1.5477    
  15  norm          2.1752        2.5842        .60653E-05   -1.5413    
  16  norm          .10000E-03    1.6405        .23014E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    13.327        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.0487        .25580E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.9392        28.745        .53605E-05   -1.5110    
  20  Prefactor     .10000E-03    17.284        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    11.886        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     5.0934        5.6408        .71241E-05   -1.5257    
  23  Prefactor     8.0755        92.467        .28554E-04   -1.5140    
  24  Prefactor     .10000E-03    6.6223        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          6.2703        3.9886        .56240E-05   -1.5207    
  26  Prefactor     .10000E-03    59.241        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.3615        .28293        .13210E-04   -.81749    
  28  Prefactor     1.0147        .15720        .43279E-04   -.92240    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65288e-09
Minuit parameter uncertainties:
  1  34.5793
  2  34.4882
  3  7.71532
  4  0.000123104
  5  2.4987
  6  0.000238032
  7  5.87992e-06
  8  3.01879e-06
  9  4.18973e-05
  10  6.45608e-05
  11  17.2184
  12  0.0457049
  13  0.000112087
  14  0.259668
  15  2.58432
  16  4.73055e-07
  17  1.64117e-05
  18  8.52844e-05
  19  28.7896
  20  5.23842e-05
  21  2.97096e-05
  22  5.64142
  23  54.7589
  24  4.87767e-07
  25  3.98872
  26  0.000189779
  27  0.28325
  28  0.157268
Done.

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

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  1.330e+00  2.597e-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.015e+00  1.573e-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.361e+00  2.833e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 86.82
Ra Dec: 226.103 10.498
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 3.24e-07 +/- 6.32e-08
Energy Flux (Fixed Index): 1.31e-04 +/- 2.56e-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) = 8464.58022087
delta logL = 0.155249037829

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8464.56675521
delta logL = 0.168714700034

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3251       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0139       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3870       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0059       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=   8464.567     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      202 TOTAL
                     EDM=   .18E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3251        .26973        .45282E-02    .64948E-04
   2  alpha         2.0139        .18944        .15304       -.14403E-04
   3  Normalizat    1.3871        .22395        .74089E-01    .12250E-04
   4  Prefactor     1.0058        .12842        .44010E-01    .82878E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.32512
  alpha      = 2.01391
  Normalizat = 1.38707
  Prefactor  = 1.00585
 **********
 **   18 **HESSE 
 **********

 FCN=   8464.567     FROM HESSE     STATUS=OK            31 CALLS      233 TOTAL
                     EDM=   .40E-15    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3251        .26315        .20025E-04   -1.5478    
   2  alpha         2.0139        .18873        .66322E-03   -.19568    
   3  Normalizat    1.3871        .27115        .32786E-03   -.81003    
   4  Prefactor     1.0058        .15505        .21728E-03   -.92535    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.9586e-16
Minuit parameter uncertainties:
  1  0.263147
  2  0.188918
  3  0.271435
  4  0.155121
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/5764': 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) = 8464.56675514
delta logL = 0.168714774956

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  1.325e+00  2.631e-01  1.000e-04  1.000e+04 ( 1.000e-10)
201        alpha:  2.014e+00  1.889e-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.006e+00  1.551e-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.387e+00  2.714e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 86.89
Ra Dec: 226.103 10.498
Photon Index (Free Index): 2.01 +/- 0.19
Photon Flux (Free Index): 2.99e-07 +/- 7.31e-08
Energy Flux (Free Index): 1.41e-04 +/- 3.34e-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/5764/cmap_HighResolution_531964801_532224001_4FGL_J1504.4+1029_daily_bin1129.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.24e-07', energy_flux2='1.41e-04', photon_flux_error='6.32e-08', dlogl='1.69e-01', energy_flux='1.31e-04', photon_flux2='2.99e-07', job_status='DONE', time_completed='2021-09-10 21:56:37.813919', photon_index_error2='0.19', photon_index2='2.01', ts='86.82', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='3.34e-05', EG='1.36', time_epoch_completed='1631336197.81', return_code='0', job_id='5764', GAL2='1.01', EG2='1.39', return_code2='0', energy_flux_error='2.56e-05', photon_flux_error2='7.31e-08', ts2='86.89', photon_index='2.12' WHERE bin_id='1129' AND source_name='4FGL J1504.4+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 21:56:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0114>
Subject: Job 5764: <4FGL_J1504.4+1029_daily_bin1129> in cluster <slac> Done

Job <4FGL_J1504.4+1029_daily_bin1129> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 10 21:41:03 2021
Job was executed on host(s) <bullet0114>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 21:41:06 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:06 2021
Terminated at Fri Sep 10 21:56:38 2021
Results reported at Fri Sep 10 21:56:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_daily_bin1129 226.103 10.4978 531964801 532224001 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 :                                   756.18 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   932 sec.
    Turnaround time :                            935 sec.

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

