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


Performing analysis on: 4FGL_J1504.4+1029_daily_bin1080
RA = 226.103, Dec = 10.4978
tmin = 519264001, tmax = 519523201
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='5645', job_status='RUN', time_executed='2021-09-10 21:43:34.056223', time_epoch_executed='1631335414.06' WHERE source_name='4FGL J1504.4+1029' and cadence='daily' and bin_id='1080'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/5645

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/5645/ft1_4FGL_J1504.4+1029_daily_bin1080.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/5645/ft2_4FGL_J1504.4+1029_daily_bin1080.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/5645/ft1_4FGL_J1504.4+1029_daily_bin1080.fits outfile=/scratch/kocevski/5645/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin1080.fits ra=226.103 dec=10.4978 rad=12.0 tmin=519264001.0 tmax=519523201.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 2.71
user 2.51
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/5645/ft1_filtered_4FGL_J1504.4+1029_daily_bin1080.fits" evtable="EVENTS" scfile=/scratch/kocevski/5645/ft2_4FGL_J1504.4+1029_daily_bin1080.fits sctable="SC_DATA" outfile=/scratch/kocevski/5645/ltcube_519264001_519523201_4FGL_J1504.4+1029_daily_bin1080.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/5645/ft2_4FGL_J1504.4+1029_daily_bin1080.fits
.....................!
real 9.15
user 8.80
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/5645/ft1_filtered_4FGL_J1504.4+1029_daily_bin1080.fits evtable="EVENTS" scfile=/scratch/kocevski/5645/ft2_4FGL_J1504.4+1029_daily_bin1080.fits sctable="SC_DATA" expcube=/scratch/kocevski/5645/ltcube_519264001_519523201_4FGL_J1504.4+1029_daily_bin1080.fits outfile=/scratch/kocevski/5645/expmap_519264001_519523201_4FGL_J1504.4+1029_daily_bin1080.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/5645/ltcube_519264001_519523201_4FGL_J1504.4+1029_daily_bin1080.fits
.....................!
real 145.76
user 141.44
sys 4.01

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/5645/ft1_filtered_4FGL_J1504.4+1029_daily_bin1080.fits scfile=/scratch/kocevski/5645/ft2_4FGL_J1504.4+1029_daily_bin1080.fits outfile=/scratch/kocevski/5645/cmap_519264001_519523201_4FGL_J1504.4+1029_daily_bin1080.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.47
user 0.29
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/5645/ft1_filtered_4FGL_J1504.4+1029_daily_bin1080.fits scfile=/scratch/kocevski/5645/ft2_4FGL_J1504.4+1029_daily_bin1080.fits outfile=/scratch/kocevski/5645/cmap_HighResolution_519264001_519523201_4FGL_J1504.4+1029_daily_bin1080.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.47
user 0.30
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    32.536       1.0000         .10000E-03   10000.    
     2 'norm      '    22.384       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10583E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .55157E-01   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    77.156       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    41.260       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 '    .31463E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.2632       1.0000         .10000E-03   10000.    
    15 'norm      '    12.260       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    6.7814       1.0000         .10000E-03   10000.    
    19 'Prefactor '    59.613       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.5483       1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.8534       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    8.3505       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0546       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .92831       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=   6939.621     FROM MIGRAD    STATUS=CONVERGED    691 CALLS     3471 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.535        30.137       -.18563E-05    .44498E-05
   2  norm          22.382        22.254        .83703E-06    .23562E-05
   3  Prefactor     .10000E-03    15.251        .16498E-05** at limit **
   4  Prefactor     .10034E-03    5.9552       -.44905E-06** at limit **
   5  norm          .10000E-03    1.0400        .66931E-07** at limit **
   6  Prefactor     77.144        76.142       -.11810E-04    .83981E-06
   7  Prefactor     .10000E-03    29.574       -.17686E-05** at limit **
   8  norm          .10000E-03    15.373        .32742E-05** at limit **
   9  Prefactor     .10000E-03    10.727       -.31369E-08** at limit **
  10  Prefactor     41.252        27.986       -.27681E-05    .13275E-05
  11  Prefactor     .10000E-03    4.6044       -.17044E-06** at limit **
  12  Prefactor     .10000E-03    19.485        .33640E-05** at limit **
  13  Prefactor     .10000E-03    229.12       -.10603E-05** at limit **
  14  norm          1.2631        .26169        .37193E-08    .16695E-03
  15  norm          12.260        3.7390       -.23967E-07   -.85431E-04
  16  norm          .10000E-03    2.5867       -.74037E-07** at limit **
  17  norm          .10000E-03    17.135       -.42317E-05** at limit **
  18  norm          6.7813        4.3853       -.53047E-07    .50937E-05
  19  Prefactor     59.594        43.766       -.16185E-04   -.14127E-05
  20  Prefactor     .10000E-03    39.155       -.26670E-05** at limit **
  21  Prefactor     .10000E-03    11.530       -.59029E-06** at limit **
  22  Prefactor     9.5466        7.5297       -.10169E-06   -.10295E-03
  23  Prefactor     6.9260        48.356        .44259E-04   -.40477E-05
  24  Prefactor     .10000E-03    16.550       -.32981E-05** at limit **
  25  norm          8.3495        3.4309       -.43888E-06   -.37822E-04
  26  Prefactor     .10000E-03    29.269       -.46196E-06** at limit **
  27  Normalizat    1.0549        .23158        .38064E-05   -.10199E-03
  28  Prefactor     .92826        .13093       -.76631E-06    .17990E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.5351
  norm       = 22.3816
  Prefactor  = 0.0001
  Prefactor  = 0.000100335
  norm       = 0.0001
  Prefactor  = 77.1444
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 41.2518
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.26314
  norm       = 12.2596
  norm       = 0.0001
  norm       = 0.0001
  norm       = 6.78133
  Prefactor  = 59.5941
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.54658
  Prefactor  = 6.92605
  Prefactor  = 0.0001
  norm       = 8.34951
  Prefactor  = 0.0001
  Normalizat = 1.05491
  Prefactor  = 0.92826
 **********
 **   18 **HESSE 
 **********

 FCN=   6939.621     FROM HESSE     STATUS=OK           521 CALLS     3992 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.535        30.161        .70248E-04   -1.4567    
   2  norm          22.382        22.253        .84662E-04   -1.4761    
   3  Prefactor     .10000E-03    15.733        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10034E-03    9.1979        .53973E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.0445        .82944E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     77.144        76.199        .45716E-04   -1.3949    
   7  Prefactor     .10000E-03    29.668        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    15.449        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.752        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     41.252        28.099        .62406E-04   -1.4423    
  11  Prefactor     .10000E-03    4.6112        .17457E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    19.631        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    239.70        .42739E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.2631        .26218        .18416E-04   -1.5483    
  15  norm          12.260        3.7402        .83304E-04   -1.5008    
  16  norm          .10000E-03    2.5904        .13085E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    17.139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.7813        4.3854        .13452E-03   -1.5187    
  19  Prefactor     59.594        43.906        .51964E-04   -1.4162    
  20  Prefactor     .10000E-03    39.255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    11.551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     9.5466        7.5320        .12969E-03   -1.5090    
  23  Prefactor     6.9260        48.205        .15326E-03   -1.5182    
  24  Prefactor     .10000E-03    16.577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          8.3495        3.4314        .96029E-04   -1.5130    
  26  Prefactor     .10000E-03    29.281        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.0549        .27759        .32783E-03   -.91213    
  28  Prefactor     .92826        .15675        .20643E-03   -.95160    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.7866e-10
Minuit parameter uncertainties:
  1  30.1746
  2  22.2614
  3  8.81246e-05
  4  0.00351204
  5  1.35462e-06
  6  76.2954
  7  3.78956e-05
  8  2.23684e-05
  9  9.91872e-06
  10  28.1077
  11  2.34916e-06
  12  2.21124e-05
  13  0.000271299
  14  0.262178
  15  3.74023
  16  5.02208e-07
  17  2.9841e-06
  18  4.38561
  19  43.9297
  20  3.11481e-05
  21  2.56299e-05
  22  7.53279
  23  36.586
  24  7.27569e-06
  25  3.43147
  26  9.87605e-06
  27  0.277969
  28  0.156823
Done.

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

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  1.263e+00  2.622e-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.283e-01  1.568e-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.055e+00  2.780e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 78.57
Ra Dec: 226.103 10.498
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 3.07e-07 +/- 6.38e-08
Energy Flux (Fixed Index): 1.25e-04 +/- 2.58e-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) = 6939.55351714
delta logL = 0.0672161931971

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6939.54507155
delta logL = 0.0756617773832

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2525       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2111       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0336       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93627       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=   6939.545     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      202 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2525        .33567        .40845E-02   -.41936E-02
   2  alpha         2.2111        .28413        .15794       -.88016E-04
   3  Normalizat    1.0336        .22200        .74692E-01   -.11253E-03
   4  Prefactor     .93627        .13067        .45466E-01    .18328E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.25253
  alpha      = 2.21108
  Normalizat = 1.03356
  Prefactor  = 0.936274
 **********
 **   18 **HESSE 
 **********

 FCN=   6939.545     FROM HESSE     STATUS=OK            31 CALLS      233 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2525        .25828        .18061E-04   -1.5484    
   2  alpha         2.2111        .22429        .68183E-02   -.11583    
   3  Normalizat    1.0336        .26568        .33054E-03   -.91915    
   4  Prefactor     .93627        .15599        .20559E-03   -.94885    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.26982e-10
Minuit parameter uncertainties:
  1  0.258276
  2  0.2246
  3  0.26602
  4  0.156067
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/5645': 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) = 6939.54507155
delta logL = 0.0756617790948

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  1.253e+00  2.583e-01  1.000e-04  1.000e+04 ( 1.000e-10)
201        alpha:  2.211e+00  2.246e-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.363e-01  1.561e-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.034e+00  2.660e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 78.36
Ra Dec: 226.103 10.498
Photon Index (Free Index): 2.21 +/- 0.22
Photon Flux (Free Index): 3.25e-07 +/- 7.97e-08
Energy Flux (Free Index): 1.19e-04 +/- 2.80e-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/5645/cmap_HighResolution_519264001_519523201_4FGL_J1504.4+1029_daily_bin1080.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.07e-07', energy_flux2='1.19e-04', photon_flux_error='6.38e-08', dlogl='7.57e-02', energy_flux='1.25e-04', photon_flux2='3.25e-07', job_status='DONE', time_completed='2021-09-10 21:52:44.012558', photon_index_error2='0.22', photon_index2='2.21', ts='78.57', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='2.80e-05', EG='1.05', time_epoch_completed='1631335964.01', return_code='0', job_id='5645', GAL2='0.94', EG2='1.03', return_code2='0', energy_flux_error='2.58e-05', photon_flux_error2='7.97e-08', ts2='78.36', photon_index='2.12' WHERE bin_id='1080' AND source_name='4FGL J1504.4+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 21:52:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 5645: <4FGL_J1504.4+1029_daily_bin1080> in cluster <slac> Done

Job <4FGL_J1504.4+1029_daily_bin1080> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 10 21:40:58 2021
Job was executed on host(s) <bullet0033>, 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:52:44 2021
Results reported at Fri Sep 10 21:52:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_daily_bin1080 226.103 10.4978 519264001 519523201 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 :                                   498.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             238.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   704 sec.
    Turnaround time :                            706 sec.

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

