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


Performing analysis on: 4FGL_J1504.4+1029_daily_bin1045
RA = 226.103, Dec = 10.4978
tmin = 510192001, tmax = 510451201
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='5610', job_status='RUN', time_executed='2021-09-10 21:43:16.046854', time_epoch_executed='1631335396.05' WHERE source_name='4FGL J1504.4+1029' and cadence='daily' and bin_id='1045'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/5610

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/5610/ft1_4FGL_J1504.4+1029_daily_bin1045.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/5610/ft2_4FGL_J1504.4+1029_daily_bin1045.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/5610/ft1_4FGL_J1504.4+1029_daily_bin1045.fits outfile=/scratch/kocevski/5610/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin1045.fits ra=226.103 dec=10.4978 rad=12.0 tmin=510192001.0 tmax=510451201.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 4.29
user 4.02
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/5610/ft1_filtered_4FGL_J1504.4+1029_daily_bin1045.fits evtable="EVENTS" scfile=/scratch/kocevski/5610/ft2_4FGL_J1504.4+1029_daily_bin1045.fits sctable="SC_DATA" expcube=/scratch/kocevski/5610/ltcube_510192001_510451201_4FGL_J1504.4+1029_daily_bin1045.fits outfile=/scratch/kocevski/5610/expmap_510192001_510451201_4FGL_J1504.4+1029_daily_bin1045.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/5610/ltcube_510192001_510451201_4FGL_J1504.4+1029_daily_bin1045.fits
.....................!
real 190.56
user 185.47
sys 4.63

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/5610/ft1_filtered_4FGL_J1504.4+1029_daily_bin1045.fits scfile=/scratch/kocevski/5610/ft2_4FGL_J1504.4+1029_daily_bin1045.fits outfile=/scratch/kocevski/5610/cmap_510192001_510451201_4FGL_J1504.4+1029_daily_bin1045.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=226.103 yref=10.4978 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    57.670       1.0000         .10000E-03   10000.    
     2 'norm      '    3.1693       1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.763       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.0752       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.9464       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.468       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.4643       1.0000         .10000E-03   10000.    
    14 'norm      '    1.3733       1.0000         .10000E-03   10000.    
    15 'norm      '    5.7950       1.0000         .10000E-03   10000.    
    16 'norm      '    1.4063       1.0000         .10000E-03   10000.    
    17 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.0422       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .23328E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.1751       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.2126       1.0000         .10000E-03   10000.    
    25 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .14058E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.2435       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .95140       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=   6537.603     FROM MIGRAD    STATUS=CONVERGED    706 CALLS     3481 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     57.693        35.775       -.14086E-05   -.18658E-03
   2  norm          3.1686        26.540        .10791E-05    .53827E-05
   3  Prefactor     16.762        8.6235       -.33038E-07   -.14857E-04
   4  Prefactor     .10000E-03    1.8930        .18001E-08** at limit **
   5  norm          3.0758        2.9544        .53259E-07   -.66117E-05
   6  Prefactor     .10000E-03    23.972        .18323E-06** at limit **
   7  Prefactor     .10000E-03    13.269        .64933E-07** at limit **
   8  norm          .10000E-03    10.172        .10022E-05** at limit **
   9  Prefactor     .10000E-03    9.6254       -.19186E-06** at limit **
  10  Prefactor     3.9436        54.568       -.25931E-05   -.47496E-04
  11  Prefactor     .10000E-03    8.0403       -.32819E-07** at limit **
  12  Prefactor     17.456        33.560       -.43492E-06   -.12609E-04
  13  Prefactor     4.4738        50.017       -.52270E-06   -.17680E-04
  14  norm          1.3732        .28082       -.13924E-08    .40592E-04
  15  norm          5.7931        2.6930       -.16120E-08   -.10092E-04
  16  norm          1.4063        4.0918        .79868E-06   -.16114E-04
  17  norm          .10000E-03    20.958       -.15937E-06** at limit **
  18  norm          .10000E-03    4.9714        .86549E-07** at limit **
  19  Prefactor     2.7794        171.32       -.43173E-06   -.46036E-05
  20  Prefactor     .10000E-03    80.041        .51204E-07** at limit **
  21  Prefactor     7.1727        27.843        .10031E-05    .32036E-04
  22  Prefactor     .10000E-03    6.5674        .67681E-07** at limit **
  23  Prefactor     .10000E-03    10.519       -.94794E-06** at limit **
  24  Prefactor     5.2142        18.704        .49873E-05   -.34409E-04
  25  norm          .10000E-03    1.2975        .28450E-07** at limit **
  26  Prefactor     .10000E-03    49.911        .12784E-07** at limit **
  27  Normalizat    1.2439        .25117        .12621E-05   -.59227E-04
  28  Prefactor     .95113        .13900       -.88481E-06    .71948E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 57.6931
  norm       = 3.1686
  Prefactor  = 16.7621
  Prefactor  = 0.0001
  norm       = 3.07581
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.94364
  Prefactor  = 0.0001
  Prefactor  = 17.4559
  Prefactor  = 4.47378
  norm       = 1.37325
  norm       = 5.79309
  norm       = 1.40628
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.77938
  Prefactor  = 0.0001
  Prefactor  = 7.17274
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.21423
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.24388
  Prefactor  = 0.95113
 **********
 **   18 **HESSE 
 **********

 FCN=   6537.603     FROM HESSE     STATUS=OK           519 CALLS     4000 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     57.693        36.641        .52827E-04   -1.4187    
   2  norm          3.1686        26.507        .22765E-03   -1.5352    
   3  Prefactor     16.762        8.6310        .97824E-04   -1.4889    
   4  Prefactor     .10000E-03    1.8974        .10862E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.0758        2.9487        .13238E-03   -1.5357    
   6  Prefactor     .10000E-03    23.988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    13.281        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    10.397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.6365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.9436        56.618        .20306E-03   -1.5311    
  11  Prefactor     .10000E-03    8.0549        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     17.456        33.595        .95828E-04   -1.4872    
  13  Prefactor     4.4738        49.859        .19057E-03   -1.5285    
  14  norm          1.3732        .28100        .18299E-04   -1.5474    
  15  norm          5.7931        2.6939        .86677E-04   -1.5227    
  16  norm          1.4063        4.0558        .27348E-03   -1.5471    
  17  norm          .10000E-03    20.968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    5.1864        .35176E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.7794        172.60        .23263E-03   -1.5375    
  20  Prefactor     .10000E-03    80.376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     7.1727        27.962        .14975E-03   -1.5172    
  22  Prefactor     .10000E-03    6.7094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    10.670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     5.2142        19.136        .88033E-03   -1.5251    
  25  norm          .10000E-03    1.3135        .89934E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    49.939        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.2439        .30171        .31219E-03   -.85258    
  28  Prefactor     .95113        .16647        .20797E-03   -.94377    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.66388e-10
Minuit parameter uncertainties:
  1  36.6556
  2  18.34
  3  8.63168
  4  3.42397e-07
  5  2.94886
  6  2.86286e-05
  7  1.75801e-05
  8  0.000114542
  9  1.64632e-05
  10  29.919
  11  4.23064e-06
  12  33.6316
  13  29.9016
  14  0.280998
  15  2.694
  16  4.05663
  17  2.24554e-05
  18  3.12937e-06
  19  43.9371
  20  5.24861e-05
  21  28.0131
  22  7.9458e-06
  23  0.000101231
  24  19.1589
  25  1.50605e-07
  26  9.77121e-06
  27  0.302137
  28  0.166558
Done.

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

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  1.373e+00  2.810e-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:  9.511e-01  1.666e-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.244e+00  3.021e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 76.48
Ra Dec: 226.103 10.498
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 3.34e-07 +/- 6.84e-08
Energy Flux (Fixed Index): 1.35e-04 +/- 2.77e-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) = 6537.52207163
delta logL = 0.0807410556508

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6537.50958287
delta logL = 0.0932298161397

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3580       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2159       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2206       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95969       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=   6537.510     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      195 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3580        .34211        .40571E-02   -.11618E-02
   2  alpha         2.2160        .25952        .14585        .36835E-04
   3  Normalizat    1.2206        .23316        .71084E-01    .39521E-04
   4  Prefactor     .95970        .13660        .45761E-01    .99404E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.35796
  alpha      = 2.21597
  Normalizat = 1.22059
  Prefactor  = 0.959696
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3580        .27598        .17938E-04   -1.5475    
   2  alpha         2.2160        .21319        .63349E-03   -.11386    
   3  Normalizat    1.2206        .28271        .31454E-03   -.85969    
   4  Prefactor     .95970        .16518        .20710E-03   -.94085    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.7962e-11
Minuit parameter uncertainties:
  1  0.275979
  2  0.213454
  3  0.283062
  4  0.165263
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/5610': 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) = 6537.50958286
delta logL = 0.0932298230819

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  1.358e+00  2.760e-01  1.000e-04  1.000e+04 ( 1.000e-10)
201        alpha:  2.216e+00  2.135e-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:  9.597e-01  1.653e-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.221e+00  2.831e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 76.42
Ra Dec: 226.103 10.498
Photon Index (Free Index): 2.22 +/- 0.21
Photon Flux (Free Index): 3.54e-07 +/- 8.39e-08
Energy Flux (Free Index): 1.28e-04 +/- 2.96e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/5610/cmap_HighResolution_510192001_510451201_4FGL_J1504.4+1029_daily_bin1045.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.34e-07', energy_flux2='1.28e-04', photon_flux_error='6.84e-08', dlogl='9.32e-02', energy_flux='1.35e-04', photon_flux2='3.54e-07', job_status='DONE', time_completed='2021-09-10 21:54:48.388464', photon_index_error2='0.21', photon_index2='2.22', ts='76.48', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='2.96e-05', EG='1.24', time_epoch_completed='1631336088.39', return_code='0', job_id='5610', GAL2='0.96', EG2='1.22', return_code2='0', energy_flux_error='2.77e-05', photon_flux_error2='8.39e-08', ts2='76.42', photon_index='2.12' WHERE bin_id='1045' AND source_name='4FGL J1504.4+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 21:54:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 5610: <4FGL_J1504.4+1029_daily_bin1045> in cluster <slac> Done

Job <4FGL_J1504.4+1029_daily_bin1045> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 10 21:40:55 2021
Job was executed on host(s) <bullet0117>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 21:40:57 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:40:57 2021
Terminated at Fri Sep 10 21:54:49 2021
Results reported at Fri Sep 10 21:54:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_daily_bin1045 226.103 10.4978 510192001 510451201 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 :                                   636.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             320.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   831 sec.
    Turnaround time :                            834 sec.

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

