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


Performing analysis on: 4FGL_J1504.4+1029_daily_bin1233
RA = 226.103, Dec = 10.4978
tmin = 558921601, tmax = 559180801
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='5918', job_status='RUN', time_executed='2021-09-10 21:43:56.470945', time_epoch_executed='1631335436.47' WHERE source_name='4FGL J1504.4+1029' and cadence='daily' and bin_id='1233'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/5918

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/5918/ft1_4FGL_J1504.4+1029_daily_bin1233.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/5918/ft2_4FGL_J1504.4+1029_daily_bin1233.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/5918/ft1_4FGL_J1504.4+1029_daily_bin1233.fits outfile=/scratch/kocevski/5918/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin1233.fits ra=226.103 dec=10.4978 rad=12.0 tmin=558921601.0 tmax=559180801.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.72
user 2.54
sys 0.15

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/5918/ft1_filtered_4FGL_J1504.4+1029_daily_bin1233.fits" evtable="EVENTS" scfile=/scratch/kocevski/5918/ft2_4FGL_J1504.4+1029_daily_bin1233.fits sctable="SC_DATA" outfile=/scratch/kocevski/5918/ltcube_558921601_559180801_4FGL_J1504.4+1029_daily_bin1233.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/5918/ft2_4FGL_J1504.4+1029_daily_bin1233.fits
.....................!
real 9.02
user 8.68
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/5918/ft1_filtered_4FGL_J1504.4+1029_daily_bin1233.fits evtable="EVENTS" scfile=/scratch/kocevski/5918/ft2_4FGL_J1504.4+1029_daily_bin1233.fits sctable="SC_DATA" expcube=/scratch/kocevski/5918/ltcube_558921601_559180801_4FGL_J1504.4+1029_daily_bin1233.fits outfile=/scratch/kocevski/5918/expmap_558921601_559180801_4FGL_J1504.4+1029_daily_bin1233.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/5918/ltcube_558921601_559180801_4FGL_J1504.4+1029_daily_bin1233.fits
.....................!
real 146.31
user 141.87
sys 4.17

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/5918/ft1_filtered_4FGL_J1504.4+1029_daily_bin1233.fits scfile=/scratch/kocevski/5918/ft2_4FGL_J1504.4+1029_daily_bin1233.fits outfile=/scratch/kocevski/5918/cmap_558921601_559180801_4FGL_J1504.4+1029_daily_bin1233.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.45
user 0.29
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/5918/ft1_filtered_4FGL_J1504.4+1029_daily_bin1233.fits scfile=/scratch/kocevski/5918/ft2_4FGL_J1504.4+1029_daily_bin1233.fits outfile=/scratch/kocevski/5918/cmap_HighResolution_558921601_559180801_4FGL_J1504.4+1029_daily_bin1233.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.45
user 0.29
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10944E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.5510       1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.084       1.0000         .10000E-03   10000.    
     5 'norm      '    7.1938       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .16103E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    169.33       1.0000         .10000E-03   10000.    
     8 'norm      '    .10106E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .96506E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    21.100       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    26.456       1.0000         .10000E-03   10000.    
    14 'norm      '    .97978       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    105.65       1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.725       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10164E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    51.471       1.0000         .10000E-03   10000.    
    24 'Prefactor '    149.23       1.0000         .10000E-03   10000.    
    25 'norm      '    2.5482       1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.1910       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .82054       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .77748       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4720E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2966.704     FROM MIGRAD    STATUS=CONVERGED    210 CALLS     3575 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    42.299       -.27188E-06** at limit **
   2  norm          .10000E-03    63.525       -.28614E-05** at limit **
   3  Prefactor     3.5532        8.8002        .15438E-05   -.25706E-04
   4  Prefactor     12.080        11.975       -.82650E-05    .33513E-04
   5  norm          7.1942        5.9345       -.75650E-06   -.38299E-04
   6  Prefactor     .10005E-03    191.59        .71882E-04** at limit **
   7  Prefactor     169.55        57.789       -.13059E-04    .43834E-02
   8  norm          .10000E-03    36.543        .22366E-04** at limit **
   9  Prefactor     .10000E-03    52.969       -.76057E-05** at limit **
  10  Prefactor     .28173        1012.9       -.23148E-03   -.20770E-03
  11  Prefactor     21.090        21.363        .22328E-04    .12964E-03
  12  Prefactor     .10001E-03    172.75       -.72155E-04** at limit **
  13  Prefactor     26.426        36.616       -.29698E-04   -.20800E-02
  14  norm          .97928        .41211        .12226E-05   -.35032E-02
  15  norm          .10000E-03    5.4533        .65090E-05** at limit **
  16  norm          .10000E-03    12.337       -.23539E-05** at limit **
  17  norm          .10000E-03    16.350        .24290E-05** at limit **
  18  norm          .10000E-03    7.0527        .22189E-06** at limit **
  19  Prefactor     105.66        7.5587       -.75012E-06    .28241E-02
  20  Prefactor     13.573        22.727        .22726E-04   -.65893E-03
  21  Prefactor     .10000E-03    37.508       -.27073E-04** at limit **
  22  Prefactor     .10000E-03    9.5017       -.34334E-05** at limit **
  23  Prefactor     51.450        12.653        .79955E-05   -.69533E-02
  24  Prefactor     149.06        72.815        .12577E-04    .39334E-02
  25  norm          2.5496        4.3159       -.15376E-05   -.27935E-04
  26  Prefactor     1.5576        630.06        .19906E-03   -.12467E-03
  27  Normalizat    .82084        .41534        .14958E-04   -.24028E-03
  28  Prefactor     .77727        .23384        .97305E-05   -.42139E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.55323
  Prefactor  = 12.0797
  norm       = 7.19425
  Prefactor  = 0.000100046
  Prefactor  = 169.548
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.281731
  Prefactor  = 21.0901
  Prefactor  = 0.000100009
  Prefactor  = 26.4261
  norm       = 0.979279
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 105.655
  Prefactor  = 13.5731
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 51.4495
  Prefactor  = 149.065
  norm       = 2.54965
  Prefactor  = 1.55761
  Normalizat = 0.820837
  Prefactor  = 0.777265
 **********
 **   18 **HESSE 
 **********

 FCN=   2966.704     FROM HESSE     STATUS=OK           581 CALLS     4156 TOTAL
                     EDM=   .81E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    42.274        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    63.477        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.5532        8.8386        .53623E-02   -1.5331    
   4  Prefactor     12.080        12.037        .28809E-02   -1.5013    
   5  norm          7.1942        5.9823        .37388E-02   -1.5171    
   6  Prefactor     .10005E-03    191.38        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     169.55        112.38        .77507E-03   -1.3096    
   8  norm          .10000E-03    36.511        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    52.626        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .28173        46.017        .13093       -1.5602    
  11  Prefactor     21.090        21.429        .21799E-02   -1.4789    
  12  Prefactor     .10001E-03    166.68        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     26.426        37.443        .19471E-02   -1.4679    
  14  norm          .97928        .41536        .48021E-02   -1.5510    
  15  norm          .10000E-03    5.4360        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    12.251        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    16.350        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    7.0481        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     105.66        59.314        .97807E-03   -1.3649    
  20  Prefactor     13.573        316.21        .27029E-02   -1.4971    
  21  Prefactor     .10000E-03    37.367        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    9.5003        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     51.450        63.646        .13975E-02   -1.4272    
  24  Prefactor     149.06        100.26        .82479E-03   -1.3260    
  25  norm          2.5496        4.3702        .63949E-02   -1.5389    
  26  Prefactor     1.5576        6824.4        .69510E-02   -1.5458    
  27  Normalizat    .82084        .36399        .79524E-01   -.99300    
  28  Prefactor     .77727        .19610        .43423E-01   -1.0057    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.05954e-07
Minuit parameter uncertainties:
  1  8.42589e-05
  2  4.0368e-05
  3  8.8418
  4  12.0397
  5  5.98283
  6  0.00597453
  7  112.523
  8  0.000303218
  9  0.000117635
  10  7.2056
  11  21.4368
  12  0.00245441
  13  37.4763
  14  0.41536
  15  2.12897e-05
  16  8.799e-06
  17  1.1726e-05
  18  3.35129e-06
  19  59.3472
  20  131.818
  21  0.000417708
  22  1.01987e-05
  23  63.7303
  24  100.376
  25  4.3707
  26  165.025
  27  0.36508
  28  0.196278
Done.

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

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  9.793e-01  4.154e-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.773e-01  1.963e-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:  8.208e-01  3.651e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 15.59
Ra Dec: 226.103 10.498
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 2.38e-07 +/- 1.01e-07
Energy Flux (Fixed Index): 9.65e-05 +/- 4.10e-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) = 2966.23435615
delta logL = 0.469978895155

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2966.22971214
delta logL = 0.474622912979

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .97900       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6208       1.0000          .0000       5.0000    
     3 'Normalizat'    .69382       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82596       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=   2966.230     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      204 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .97880        6.1832        .43228E-02    .11282E-03
   2  alpha         2.6211        3.4776        .21411        .15467E-04
   3  Normalizat    .69391        .35992        .85724E-01    .14922E-04
   4  Prefactor     .82591        .19350        .44054E-01    .26335E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.978803
  alpha      = 2.62113
  Normalizat = 0.69391
  Prefactor  = 0.825912
 **********
 **   18 **HESSE 
 **********

 FCN=   2966.230     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .36E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .97880        .40444        .19147E-04   -1.5510    
   2  alpha         2.6211        .51908        .90132E-02    .48473E-01
   3  Normalizat    .69391        .42725        .37969E-03   -1.0413    
   4  Prefactor     .82591        .23677        .19823E-03   -.98780    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.57152e-13
Minuit parameter uncertainties:
  1  0.404441
  2  0.522893
  3  0.429323
  4  0.237067
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/5918': 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) = 2966.2297118
delta logL = 0.474623247811

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  9.788e-01  4.044e-01  1.000e-04  1.000e+04 ( 1.000e-10)
201        alpha:  2.621e+00  5.229e-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:  8.259e-01  2.371e-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:  6.939e-01  4.293e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.47
Ra Dec: 226.103 10.498
Photon Index (Free Index): 2.62 +/- 0.52
Photon Flux (Free Index): 3.65e-07 +/- 1.86e-07
Energy Flux (Free Index): 9.20e-05 +/- 3.49e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/5918/cmap_HighResolution_558921601_559180801_4FGL_J1504.4+1029_daily_bin1233.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.38e-07', energy_flux2='9.20e-05', photon_flux_error='1.01e-07', dlogl='4.75e-01', energy_flux='9.65e-05', photon_flux2='3.65e-07', job_status='DONE', time_completed='2021-09-10 21:50:31.282896', photon_index_error2='0.52', photon_index2='2.62', ts='15.59', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', energy_flux_error2='3.49e-05', EG='0.82', time_epoch_completed='1631335831.28', return_code='0', job_id='5918', GAL2='0.83', EG2='0.69', return_code2='0', energy_flux_error='4.10e-05', photon_flux_error2='1.86e-07', ts2='16.47', photon_index='2.12' WHERE bin_id='1233' AND source_name='4FGL J1504.4+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 21:50:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 5918: <4FGL_J1504.4+1029_daily_bin1233> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_daily_bin1233 226.103 10.4978 558921601 559180801 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 :                                   342.53 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             261.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   556 sec.
    Turnaround time :                            560 sec.

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

