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


Performing analysis on: 4FGL_J1504.4+1029_daily_bin1086
RA = 226.103, Dec = 10.4978
tmin = 520819201, tmax = 521078401
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='5651', job_status='RUN', time_executed='2021-09-10 21:44:18.876875', time_epoch_executed='1631335458.88' WHERE source_name='4FGL J1504.4+1029' and cadence='daily' and bin_id='1086'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/5651

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/5651/ft1_4FGL_J1504.4+1029_daily_bin1086.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/5651/ft2_4FGL_J1504.4+1029_daily_bin1086.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/5651/ft1_4FGL_J1504.4+1029_daily_bin1086.fits outfile=/scratch/kocevski/5651/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin1086.fits ra=226.103 dec=10.4978 rad=12.0 tmin=520819201.0 tmax=521078401.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.51
user 3.29
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/5651/ft1_filtered_4FGL_J1504.4+1029_daily_bin1086.fits evtable="EVENTS" scfile=/scratch/kocevski/5651/ft2_4FGL_J1504.4+1029_daily_bin1086.fits sctable="SC_DATA" expcube=/scratch/kocevski/5651/ltcube_520819201_521078401_4FGL_J1504.4+1029_daily_bin1086.fits outfile=/scratch/kocevski/5651/expmap_520819201_521078401_4FGL_J1504.4+1029_daily_bin1086.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/5651/ltcube_520819201_521078401_4FGL_J1504.4+1029_daily_bin1086.fits
.....................!
real 190.39
user 185.75
sys 4.29

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/5651/ft1_filtered_4FGL_J1504.4+1029_daily_bin1086.fits scfile=/scratch/kocevski/5651/ft2_4FGL_J1504.4+1029_daily_bin1086.fits outfile=/scratch/kocevski/5651/cmap_520819201_521078401_4FGL_J1504.4+1029_daily_bin1086.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/5651/ft1_filtered_4FGL_J1504.4+1029_daily_bin1086.fits scfile=/scratch/kocevski/5651/ft2_4FGL_J1504.4+1029_daily_bin1086.fits outfile=/scratch/kocevski/5651/cmap_HighResolution_520819201_521078401_4FGL_J1504.4+1029_daily_bin1086.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.53
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10426E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    72.862       1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.000       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.3560       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10449E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    11.440       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.617       1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.766       1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.412       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.6365       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10626E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.3333       1.0000         .10000E-03   10000.    
    15 'norm      '    2.3684       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    11.692       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    32.694       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12111E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    45.155       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .14215E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10192E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    28.707       1.0000         .10000E-03   10000.    
    25 'norm      '    2.0682       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10216E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1504       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .98251       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=   7551.822     FROM MIGRAD    STATUS=CONVERGED    681 CALLS     3507 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.569       -.18318E-06** at limit **
   2  norm          72.881        39.401       -.11081E-05   -.42603E-03
   3  Prefactor     18.002        11.016        .73134E-07   -.11354E-03
   4  Prefactor     .10000E-03    9.1651        .49332E-06** at limit **
   5  norm          2.3561        2.6099        .68770E-07    .14516E-04
   6  Prefactor     .10000E-03    31.661       -.47463E-06** at limit **
   7  Prefactor     .10002E-03    35.920        .36814E-05** at limit **
   8  norm          11.436        20.036        .50671E-06   -.20979E-04
   9  Prefactor     13.564        36.190       -.31923E-05    .19199E-04
  10  Prefactor     14.774        17.793        .10290E-06   -.14586E-04
  11  Prefactor     13.413        12.933       -.86706E-06   -.30927E-03
  12  Prefactor     1.6817        243.86        .13766E-04   -.25347E-05
  13  Prefactor     .10000E-03    31.684       -.16421E-05** at limit **
  14  norm          2.3333        .33896       -.22821E-08   -.15511E-02
  15  norm          2.3690        2.5463        .18611E-06    .19670E-02
  16  norm          .10000E-03    2.2294        .26815E-07** at limit **
  17  norm          11.683        31.207        .61439E-06    .51985E-04
  18  norm          .10000E-03    1.5641       -.14031E-07** at limit **
  19  Prefactor     32.692        49.914        .49131E-06   -.40457E-05
  20  Prefactor     .10000E-03    106.59        .22251E-07** at limit **
  21  Prefactor     45.176        37.184       -.12765E-05   -.38818E-03
  22  Prefactor     .10003E-03    26.749       -.11351E-04** at limit **
  23  Prefactor     .10001E-03    27.398       -.21549E-05** at limit **
  24  Prefactor     28.704        36.668        .26321E-06    .29860E-04
  25  norm          2.0682        2.2740        .38523E-07    .38121E-04
  26  Prefactor     .10001E-03    65.194       -.28991E-05** at limit **
  27  Normalizat    1.1504        .25364       -.96966E-06   -.33340E-03
  28  Prefactor     .98247        .13761       -.29301E-06   -.53221E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 72.8809
  Prefactor  = 18.002
  Prefactor  = 0.0001
  norm       = 2.3561
  Prefactor  = 0.0001
  Prefactor  = 0.000100018
  norm       = 11.4364
  Prefactor  = 13.5638
  Prefactor  = 14.7736
  Prefactor  = 13.4134
  Prefactor  = 1.68166
  Prefactor  = 0.000100002
  norm       = 2.33328
  norm       = 2.36897
  norm       = 0.0001
  norm       = 11.6835
  norm       = 0.0001
  Prefactor  = 32.6917
  Prefactor  = 0.0001
  Prefactor  = 45.1764
  Prefactor  = 0.000100028
  Prefactor  = 0.000100006
  Prefactor  = 28.7042
  norm       = 2.06819
  Prefactor  = 0.000100012
  Normalizat = 1.1504
  Prefactor  = 0.982469
 **********
 **   18 **HESSE 
 **********

 FCN=   7551.822     FROM HESSE     STATUS=OK           519 CALLS     4026 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          72.881        39.761        .23517E-03   -1.3998    
   3  Prefactor     18.002        11.017        .94404E-04   -1.4859    
   4  Prefactor     .10000E-03    9.4124        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.3561        2.5995        .14333E-03   -1.5401    
   6  Prefactor     .10000E-03    31.707        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10002E-03    36.996        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          11.436        20.005        .11844E-03   -1.5031    
   9  Prefactor     13.564        36.688        .10855E-03   -1.4971    
  10  Prefactor     14.774        17.801        .10423E-03   -1.4939    
  11  Prefactor     13.413        12.969        .10937E-03   -1.4975    
  12  Prefactor     1.6817        248.92        .33041E-03   -1.5449    
  13  Prefactor     .10000E-03    31.827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.3333        .33977        .18313E-04   -1.5402    
  15  norm          2.3690        2.6613        .70823E-03   -1.5400    
  16  norm          .10000E-03    2.2302        .12672E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          11.683        31.241        .11716E-03   -1.5024    
  18  norm          .10000E-03    1.5714        .10613E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     32.692        50.125        .70079E-04   -1.4564    
  20  Prefactor     .10000E-03    108.53        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     45.176        37.507        .59664E-04   -1.4363    
  22  Prefactor     .10003E-03    27.064        .30826E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10001E-03    27.772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     28.704        36.748        .74776E-04   -1.4636    
  25  norm          2.0682        2.2605        .13369E-03   -1.5420    
  26  Prefactor     .10001E-03    65.860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.1504        .30871        .34920E-03   -.88150    
  28  Prefactor     .98247        .16678        .21633E-03   -.93316    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.38849e-09
Minuit parameter uncertainties:
  1  3.26936e-05
  2  39.7758
  3  11.0182
  4  8.13303e-05
  5  2.5996
  6  0.000191368
  7  0.00165071
  8  20.0168
  9  36.7489
  10  17.8076
  11  12.9722
  12  41.0935
  13  0.000483626
  14  0.339774
  15  2.66141
  16  3.28772e-06
  17  31.2849
  18  4.19193e-06
  19  50.1893
  20  0.000229883
  21  37.5266
  22  0.00175407
  23  0.000823143
  24  36.7771
  25  2.26061
  26  0.00175038
  27  0.3092
  28  0.166866
Done.

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

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  2.333e+00  3.398e-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.825e-01  1.669e-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.150e+00  3.092e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 180.35
Ra Dec: 226.103 10.498
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 5.68e-07 +/- 8.27e-08
Energy Flux (Fixed Index): 2.30e-04 +/- 3.35e-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) = 7549.74780397
delta logL = 2.0741321808

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7549.74566651
delta logL = 2.07626963569

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2886       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8328       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2586       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94387       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=   7549.746     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      203 TOTAL
                     EDM=   .71E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2892        .34253        .42654E-02   -.43441E-03
   2  alpha         1.8330        .13439        .10654       -.39345E-04
   3  Normalizat    1.2584        .23632        .76113E-01    .10898E-04
   4  Prefactor     .94390        .13516        .45562E-01    .19584E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.2892
  alpha      = 1.83295
  Normalizat = 1.25845
  Prefactor  = 0.943899
 **********
 **   18 **HESSE 
 **********

 FCN=   7549.746     FROM HESSE     STATUS=OK            31 CALLS      234 TOTAL
                     EDM=   .18E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2892        .35411        .18845E-04   -1.5405    
   2  alpha         1.8330        .14046        .46655E-03   -.27009    
   3  Normalizat    1.2584        .28496        .33687E-03   -.84815    
   4  Prefactor     .94390        .16263        .22036E-03   -.94624    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.80704e-12
Minuit parameter uncertainties:
  1  0.35411
  2  0.140538
  3  0.28531
  4  0.162716
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/5651': 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) = 7549.74566513
delta logL = 2.07627101334

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  2.289e+00  3.541e-01  1.000e-04  1.000e+04 ( 1.000e-10)
201        alpha:  1.833e+00  1.405e-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.439e-01  1.627e-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.258e+00  2.853e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 183.72
Ra Dec: 226.103 10.498
Photon Index (Free Index): 1.83 +/- 0.14
Photon Flux (Free Index): 4.65e-07 +/- 8.62e-08
Energy Flux (Free Index): 2.94e-04 +/- 6.05e-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/5651/cmap_HighResolution_520819201_521078401_4FGL_J1504.4+1029_daily_bin1086.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.68e-07', energy_flux2='2.94e-04', photon_flux_error='8.27e-08', dlogl='2.08e+00', energy_flux='2.30e-04', photon_flux2='4.65e-07', job_status='DONE', time_completed='2021-09-10 21:56:18.732968', photon_index_error2='0.14', photon_index2='1.83', ts='180.35', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='6.05e-05', EG='1.15', time_epoch_completed='1631336178.73', return_code='0', job_id='5651', GAL2='0.94', EG2='1.26', return_code2='0', energy_flux_error='3.35e-05', photon_flux_error2='8.62e-08', ts2='183.72', photon_index='2.12' WHERE bin_id='1086' AND source_name='4FGL J1504.4+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 21:56:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0112>
Subject: Job 5651: <4FGL_J1504.4+1029_daily_bin1086> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_daily_bin1086 226.103 10.4978 520819201 521078401 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 :                                   672.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             291.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   919 sec.
    Turnaround time :                            920 sec.

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

