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


Performing analysis on: 4FGL_J1504.4+1029_daily_bin1148
RA = 226.103, Dec = 10.4978
tmin = 536889601, tmax = 537148801
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='5790', job_status='RUN', time_executed='2021-09-10 21:43:49.169044', time_epoch_executed='1631335429.17' WHERE source_name='4FGL J1504.4+1029' and cadence='daily' and bin_id='1148'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/5790

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/5790/ft1_4FGL_J1504.4+1029_daily_bin1148.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/5790/ft2_4FGL_J1504.4+1029_daily_bin1148.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/5790/ft1_4FGL_J1504.4+1029_daily_bin1148.fits outfile=/scratch/kocevski/5790/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin1148.fits ra=226.103 dec=10.4978 rad=12.0 tmin=536889601.0 tmax=537148801.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.63
user 3.37
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/5790/ft1_filtered_4FGL_J1504.4+1029_daily_bin1148.fits" evtable="EVENTS" scfile=/scratch/kocevski/5790/ft2_4FGL_J1504.4+1029_daily_bin1148.fits sctable="SC_DATA" outfile=/scratch/kocevski/5790/ltcube_536889601_537148801_4FGL_J1504.4+1029_daily_bin1148.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/5790/ft2_4FGL_J1504.4+1029_daily_bin1148.fits
.....................!
real 12.46
user 12.08
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/5790/ft1_filtered_4FGL_J1504.4+1029_daily_bin1148.fits evtable="EVENTS" scfile=/scratch/kocevski/5790/ft2_4FGL_J1504.4+1029_daily_bin1148.fits sctable="SC_DATA" expcube=/scratch/kocevski/5790/ltcube_536889601_537148801_4FGL_J1504.4+1029_daily_bin1148.fits outfile=/scratch/kocevski/5790/expmap_536889601_537148801_4FGL_J1504.4+1029_daily_bin1148.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/5790/ltcube_536889601_537148801_4FGL_J1504.4+1029_daily_bin1148.fits
.....................!
real 191.41
user 185.73
sys 5.10

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/5790/ft1_filtered_4FGL_J1504.4+1029_daily_bin1148.fits scfile=/scratch/kocevski/5790/ft2_4FGL_J1504.4+1029_daily_bin1148.fits outfile=/scratch/kocevski/5790/cmap_536889601_537148801_4FGL_J1504.4+1029_daily_bin1148.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/5790/ft1_filtered_4FGL_J1504.4+1029_daily_bin1148.fits scfile=/scratch/kocevski/5790/ft2_4FGL_J1504.4+1029_daily_bin1148.fits outfile=/scratch/kocevski/5790/cmap_HighResolution_536889601_537148801_4FGL_J1504.4+1029_daily_bin1148.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.58
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.0887       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13048E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    6.0176       1.0000         .10000E-03   10000.    
     6 'Prefactor '    75.845       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    9.8830       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.5909       1.0000         .10000E-03   10000.    
    15 'norm      '    4.3083       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.3197       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    21.761       1.0000         .10000E-03   10000.    
    21 'Prefactor '    32.920       1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.3428       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    4.5228       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.6408       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .72647       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=   9132.809     FROM MIGRAD    STATUS=CONVERGED    662 CALLS     3443 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.126        .12576E-04** at limit **
   2  norm          .10000E-03    10.162        .36493E-05** at limit **
   3  Prefactor     6.0874        6.1787        .39665E-08    .18116E-03
   4  Prefactor     .10000E-03    11.811       -.69302E-05** at limit **
   5  norm          6.0174        3.4558        .10683E-07    .25607E-03
   6  Prefactor     75.845        59.151       -.20413E-06   -.13176E-04
   7  Prefactor     .10000E-03    28.982        .94018E-05** at limit **
   8  norm          9.8867        12.470       -.89334E-06   -.22464E-03
   9  Prefactor     .10000E-03    25.980       -.42941E-05** at limit **
  10  Prefactor     .10000E-03    7.1034        .24867E-06** at limit **
  11  Prefactor     .10000E-03    12.832       -.51708E-06** at limit **
  12  Prefactor     .10000E-03    22.094       -.29692E-05** at limit **
  13  Prefactor     .10000E-03    93.910       -.13933E-04** at limit **
  14  norm          1.5909        .25357       -.18369E-08    .56214E-03
  15  norm          4.3086        2.5494       -.76410E-07   -.49311E-03
  16  norm          .10000E-03    1.3179       -.15786E-07** at limit **
  17  norm          .10000E-03    100.58       -.51101E-04** at limit **
  18  norm          3.3197        3.1211        .12313E-07   -.40419E-04
  19  Prefactor     .10000E-03    25.067       -.63806E-05** at limit **
  20  Prefactor     21.761        33.866       -.35207E-06   -.19863E-05
  21  Prefactor     32.922        36.241        .11235E-05    .22612E-04
  22  Prefactor     6.3431        5.7761       -.12689E-05   -.25335E-03
  23  Prefactor     .10000E-03    12.504       -.46120E-05** at limit **
  24  Prefactor     .10000E-03    7.7704       -.31558E-06** at limit **
  25  norm          4.5229        2.7045       -.43406E-07   -.73233E-04
  26  Prefactor     .10000E-03    85.306        .51441E-04** at limit **
  27  Normalizat    1.6408        .21114        .35004E-06    .18579E-03
  28  Prefactor     .72643        .11640        .98739E-07    .20290E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.08744
  Prefactor  = 0.0001
  norm       = 6.01737
  Prefactor  = 75.845
  Prefactor  = 0.0001
  norm       = 9.88675
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.59091
  norm       = 4.30859
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.31969
  Prefactor  = 0.0001
  Prefactor  = 21.7608
  Prefactor  = 32.9223
  Prefactor  = 6.34307
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.52292
  Prefactor  = 0.0001
  Normalizat = 1.64082
  Prefactor  = 0.726431
 **********
 **   18 **HESSE 
 **********

 FCN=   9132.809     FROM HESSE     STATUS=OK           511 CALLS     3954 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.138        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    10.172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.0874        6.1758        .16271E-03   -1.5214    
   4  Prefactor     .10000E-03    12.223        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.0174        3.4578        .13053E-03   -1.5217    
   6  Prefactor     75.845        59.208        .46106E-04   -1.3964    
   7  Prefactor     .10000E-03    29.057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          9.8867        12.443        .12746E-03   -1.5079    
   9  Prefactor     .10000E-03    26.138        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.1124        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    12.911        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    22.240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    95.485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.5909        .25418        .18389E-04   -1.5456    
  15  norm          4.3086        2.5451        .10944E-03   -1.5293    
  16  norm          .10000E-03    1.3180        .10714E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    100.96        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.3197        3.1191        .15620E-03   -1.5344    
  19  Prefactor     .10000E-03    25.118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     21.761        33.862        .85864E-04   -1.4775    
  21  Prefactor     32.922        36.568        .69838E-04   -1.4560    
  22  Prefactor     6.3431        5.7834        .15938E-03   -1.5204    
  23  Prefactor     .10000E-03    12.514        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    7.7786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          4.5229        2.7042        .11823E-03   -1.5283    
  26  Prefactor     .10000E-03    85.396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.6408        .25252        .29289E-03   -.73895    
  28  Prefactor     .72643        .13804        .23727E-03   -1.0250    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.76151e-10
Minuit parameter uncertainties:
  1  9.46443e-06
  2  4.19209e-06
  3  6.17649
  4  9.40696e-05
  5  3.45794
  6  59.2539
  7  6.24262e-05
  8  12.4458
  9  2.17948e-05
  10  4.74504e-07
  11  6.31342e-06
  12  2.1843e-05
  13  0.000248138
  14  0.254184
  15  2.54515
  16  2.34463e-08
  17  0.000372505
  18  3.11921
  19  3.09323e-06
  20  33.8919
  21  36.5934
  22  5.78389
  23  2.86436e-06
  24  1.50112e-06
  25  2.70426
  26  0.00017085
  27  0.25272
  28  0.138108
Done.

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

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  1.591e+00  2.542e-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:  7.264e-01  1.381e-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.641e+00  2.527e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 125.27
Ra Dec: 226.103 10.498
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 3.87e-07 +/- 6.19e-08
Energy Flux (Fixed Index): 1.57e-04 +/- 2.51e-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) = 9132.75297233
delta logL = 0.0556728912143

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9132.75052679
delta logL = 0.0581184308357

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5807       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1810       1.0000          .0000       5.0000    
     3 'Normalizat'    1.6259       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73179       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=   9132.751     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      195 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5808        .29031        .41153E-02    .13693E-02
   2  alpha         2.1810        .18808        .13666        .12702E-04
   3  Normalizat    1.6259        .20551        .66434E-01   -.35829E-04
   4  Prefactor     .73178        .11560        .42823E-01    .35721E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.58076
  alpha      = 2.18101
  Normalizat = 1.62594
  Prefactor  = 0.731781
 **********
 **   18 **HESSE 
 **********

 FCN=   9132.751     FROM HESSE     STATUS=OK            29 CALLS      224 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5808        .25360        .18194E-04   -1.5457    
   2  alpha         2.1810        .16675        .59559E-03   -.12795    
   3  Normalizat    1.6259        .24484        .29385E-03   -.74298    
   4  Prefactor     .73178        .13718        .23646E-03   -1.0229    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.99752e-11
Minuit parameter uncertainties:
  1  0.253605
  2  0.166878
  3  0.245019
  4  0.13724
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/5790': 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) = 9132.75052677
delta logL = 0.0581184446783

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  1.581e+00  2.536e-01  1.000e-04  1.000e+04 ( 1.000e-10)
201        alpha:  2.181e+00  1.669e-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:  7.318e-01  1.372e-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.626e+00  2.450e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 124.60
Ra Dec: 226.103 10.498
Photon Index (Free Index): 2.18 +/- 0.17
Photon Flux (Free Index): 4.01e-07 +/- 7.56e-08
Energy Flux (Free Index): 1.52e-04 +/- 2.82e-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/5790/cmap_HighResolution_536889601_537148801_4FGL_J1504.4+1029_daily_bin1148.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.87e-07', energy_flux2='1.52e-04', photon_flux_error='6.19e-08', dlogl='5.81e-02', energy_flux='1.57e-04', photon_flux2='4.01e-07', job_status='DONE', time_completed='2021-09-10 21:57:14.955587', photon_index_error2='0.17', photon_index2='2.18', ts='125.27', fit_tolerance='1e-08', GAL='0.73', photon_index_error='0.00', energy_flux_error2='2.82e-05', EG='1.64', time_epoch_completed='1631336234.96', return_code='0', job_id='5790', GAL2='0.73', EG2='1.63', return_code2='0', energy_flux_error='2.51e-05', photon_flux_error2='7.56e-08', ts2='124.60', photon_index='2.12' WHERE bin_id='1148' AND source_name='4FGL J1504.4+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 21:57:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 5790: <4FGL_J1504.4+1029_daily_bin1148> in cluster <slac> Done

Job <4FGL_J1504.4+1029_daily_bin1148> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 10 21:41:04 2021
Job was executed on host(s) <bullet0268>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 21:41:07 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:07 2021
Terminated at Fri Sep 10 21:57:15 2021
Results reported at Fri Sep 10 21:57:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_daily_bin1148 226.103 10.4978 536889601 537148801 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 :                                   753.10 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             250.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   968 sec.
    Turnaround time :                            971 sec.

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

