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


Performing analysis on: 4FGL_J1504.4+1029_daily_bin1523
RA = 226.103, Dec = 10.4978
tmin = 634089601, tmax = 634348801
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='10619', job_status='RUN', time_executed='2021-09-10 21:58:04.518885', time_epoch_executed='1631336284.52' WHERE source_name='4FGL J1504.4+1029' and cadence='daily' and bin_id='1523'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/10619

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/10619/ft1_4FGL_J1504.4+1029_daily_bin1523.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/10619/ft2_4FGL_J1504.4+1029_daily_bin1523.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/10619/ft1_4FGL_J1504.4+1029_daily_bin1523.fits outfile=/scratch/kocevski/10619/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin1523.fits ra=226.103 dec=10.4978 rad=12.0 tmin=634089601.0 tmax=634348801.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.98
user 4.77
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/10619/ft1_filtered_4FGL_J1504.4+1029_daily_bin1523.fits" evtable="EVENTS" scfile=/scratch/kocevski/10619/ft2_4FGL_J1504.4+1029_daily_bin1523.fits sctable="SC_DATA" outfile=/scratch/kocevski/10619/ltcube_634089601_634348801_4FGL_J1504.4+1029_daily_bin1523.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/10619/ft2_4FGL_J1504.4+1029_daily_bin1523.fits
.....................!
real 12.29
user 11.90
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/10619/ft1_filtered_4FGL_J1504.4+1029_daily_bin1523.fits evtable="EVENTS" scfile=/scratch/kocevski/10619/ft2_4FGL_J1504.4+1029_daily_bin1523.fits sctable="SC_DATA" expcube=/scratch/kocevski/10619/ltcube_634089601_634348801_4FGL_J1504.4+1029_daily_bin1523.fits outfile=/scratch/kocevski/10619/expmap_634089601_634348801_4FGL_J1504.4+1029_daily_bin1523.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/10619/ltcube_634089601_634348801_4FGL_J1504.4+1029_daily_bin1523.fits
.....................!
real 190.90
user 185.86
sys 4.57

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/10619/ft1_filtered_4FGL_J1504.4+1029_daily_bin1523.fits scfile=/scratch/kocevski/10619/ft2_4FGL_J1504.4+1029_daily_bin1523.fits outfile=/scratch/kocevski/10619/cmap_634089601_634348801_4FGL_J1504.4+1029_daily_bin1523.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/10619/ft1_filtered_4FGL_J1504.4+1029_daily_bin1523.fits scfile=/scratch/kocevski/10619/ft2_4FGL_J1504.4+1029_daily_bin1523.fits outfile=/scratch/kocevski/10619/cmap_HighResolution_634089601_634348801_4FGL_J1504.4+1029_daily_bin1523.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.3951       1.0000         .10000E-03   10000.    
     2 'norm      '    11.101       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .28629       1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.725       1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.178       1.0000         .10000E-03   10000.    
     8 'norm      '    .10075E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.5204       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .45615       1.0000         .10000E-03   10000.    
    15 'norm      '    3.3810       1.0000         .10000E-03   10000.    
    16 'norm      '    5.0280       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.2075       1.0000         .10000E-03   10000.    
    19 'Prefactor '    23.798       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    7.7878       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .94527       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1621       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=   7225.948     FROM MIGRAD    STATUS=CONVERGED    687 CALLS     3503 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.3942        14.500        .39982E-06   -.35116E-05
   2  norm          11.099        17.914        .88504E-07    .31046E-05
   3  Prefactor     .10000E-03    1.8118       -.40326E-07** at limit **
   4  Prefactor     .10000E-03    3.0453       -.96910E-07** at limit **
   5  norm          .28271        2.2339        .50619E-06   -.17471E-03
   6  Prefactor     13.746        153.75       -.61626E-05   -.26154E-04
   7  Prefactor     15.182        32.965       -.11591E-05   -.61521E-04
   8  norm          .10000E-03    26.271        .14161E-05** at limit **
   9  Prefactor     .10000E-03    5.6275       -.48776E-07** at limit **
  10  Prefactor     1.5142        40.604        .17166E-04   -.62282E-04
  11  Prefactor     .10000E-03    2.6381       -.23196E-07** at limit **
  12  Prefactor     .10000E-03    33.650        .18209E-05** at limit **
  13  Prefactor     .10000E-03    14.045       -.37377E-06** at limit **
  14  norm          .45616        .18597       -.14543E-07    .79435E-04
  15  norm          3.3810        2.3516        .11076E-06    .21827E-03
  16  norm          5.0281        5.6131       -.25366E-07    .38357E-06
  17  norm          .10000E-03    14.058       -.29406E-06** at limit **
  18  norm          1.2073        2.6102        .14117E-06    .19141E-04
  19  Prefactor     23.797        32.668        .25048E-06   -.10048E-05
  20  Prefactor     .10000E-03    49.437       -.66181E-05** at limit **
  21  Prefactor     .10000E-03    34.975        .15655E-05** at limit **
  22  Prefactor     .10000E-03    2.7994       -.69815E-07** at limit **
  23  Prefactor     .10000E-03    20.812       -.28347E-05** at limit **
  24  Prefactor     .10000E-03    16.113        .16286E-05** at limit **
  25  norm          7.7877        3.4948        .23619E-07    .25893E-04
  26  Prefactor     .10000E-03    100.49        .48768E-05** at limit **
  27  Normalizat    .94514        .22479       -.17614E-05   -.35458E-04
  28  Prefactor     1.1622        .13272        .58268E-06   -.13906E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.39416
  norm       = 11.0994
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.282708
  Prefactor  = 13.7462
  Prefactor  = 15.182
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 1.5142
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.456159
  norm       = 3.38103
  norm       = 5.02813
  norm       = 0.0001
  norm       = 1.20734
  Prefactor  = 23.7967
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 7.7877
  Prefactor  = 0.000100002
  Normalizat = 0.945141
  Prefactor  = 1.16223
 **********
 **   18 **HESSE 
 **********

 FCN=   7225.948     FROM HESSE     STATUS=OK           519 CALLS     4022 TOTAL
                     EDM=   .45E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.3942        14.494        .69179E-03   -1.5128    
   2  norm          11.099        17.909        .12024E-03   -1.5042    
   3  Prefactor     .10000E-03    1.8139        .11174E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.0790        .14482E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .28271        5.1657        .24359E-02   -1.5602    
   6  Prefactor     13.746        153.91        .10812E-03   -1.4966    
   7  Prefactor     15.182        32.863        .10281E-03   -1.4928    
   8  norm          .10000E-03    26.497        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.6307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.5142        40.914        .17325E-02   -1.5462    
  11  Prefactor     .10000E-03    2.6388        .13484E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    34.093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    14.059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .45616        .18550        .22224E-04   -1.5573    
  15  norm          3.3810        2.3412        .10294E-03   -1.5340    
  16  norm          5.0281        5.6128        .17933E-03   -1.5259    
  17  norm          .10000E-03    14.059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.2073        2.5520        .19467E-03   -1.5488    
  19  Prefactor     23.797        32.678        .82112E-04   -1.4732    
  20  Prefactor     .10000E-03    49.901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    35.364        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    2.8271        .13888E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    20.912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    16.165        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          7.7877        3.4951        .10348E-03   -1.5150    
  26  Prefactor     .10000E-03    100.70        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .94514        .26245        .33530E-03   -.94892    
  28  Prefactor     1.1622        .15662        .18751E-03   -.87502    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.51333e-08
Minuit parameter uncertainties:
  1  14.5001
  2  17.9177
  3  2.13203e-06
  4  8.53989e-06
  5  2.41674
  6  92.2943
  7  32.902
  8  0.000270097
  9  6.96113e-06
  10  15.7534
  11  2.23665e-06
  12  4.76414e-05
  13  3.8351e-05
  14  0.185498
  15  2.34126
  16  5.61335
  17  2.23088e-05
  18  2.55223
  19  32.7022
  20  0.000832814
  21  5.13301e-05
  22  5.90833e-06
  23  0.00025835
  24  0.00010974
  25  3.49522
  26  0.000860438
  27  0.262808
  28  0.156684
Done.

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

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  4.562e-01  1.855e-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:  1.162e+00  1.567e-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:  9.451e-01  2.628e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 16.17
Ra Dec: 226.103 10.498
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 1.11e-07 +/- 4.51e-08
Energy Flux (Fixed Index): 4.50e-05 +/- 1.83e-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) = 7225.6975691
delta logL = 0.250018675926

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7225.68604677
delta logL = 0.261541004303

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .45104       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4735       1.0000          .0000       5.0000    
     3 'Normalizat'    .89184       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1830       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=   7225.686     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      204 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .45118        2.3322        .45581E-02   -.80244E-03
   2  alpha         2.4738        3.6684        .32351        .10725E-04
   3  Normalizat    .89226        .12202        .77676E-01   -.20123E-04
   4  Prefactor     1.1826        .58277E-01    .35046E-01    .28035E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.45118
  alpha      = 2.47381
  Normalizat = 0.892263
  Prefactor  = 1.18259
 **********
 **   18 **HESSE 
 **********

 FCN=   7225.686     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .45118        .18139        .20226E-04   -1.5574    
   2  alpha         2.4738        .49437        .12453E-01   -.10478E-01
   3  Normalizat    .89226        .26512        .34380E-03   -.96733    
   4  Prefactor     1.1826        .15885        .18605E-03   -.86869    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.57818e-11
Minuit parameter uncertainties:
  1  0.181386
  2  0.497651
  3  0.265505
  4  0.158914
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/10619': 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) = 7225.68604191
delta logL = 0.261545867634

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  4.512e-01  1.814e-01  1.000e-04  1.000e+04 ( 1.000e-10)
201        alpha:  2.474e+00  4.977e-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:  1.183e+00  1.589e-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.923e-01  2.655e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.77
Ra Dec: 226.103 10.498
Photon Index (Free Index): 2.47 +/- 0.50
Photon Flux (Free Index): 1.46e-07 +/- 7.01e-08
Energy Flux (Free Index): 4.13e-05 +/- 1.60e-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/10619/cmap_HighResolution_634089601_634348801_4FGL_J1504.4+1029_daily_bin1523.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.11e-07', energy_flux2='4.13e-05', photon_flux_error='4.51e-08', dlogl='2.62e-01', energy_flux='4.50e-05', photon_flux2='1.46e-07', job_status='DONE', time_completed='2021-09-10 22:09:15.829625', photon_index_error2='0.50', photon_index2='2.47', ts='16.17', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', energy_flux_error2='1.60e-05', EG='0.95', time_epoch_completed='1631336955.83', return_code='0', job_id='10619', GAL2='1.18', EG2='0.89', return_code2='0', energy_flux_error='1.83e-05', photon_flux_error2='7.01e-08', ts2='16.77', photon_index='2.12' WHERE bin_id='1523' AND source_name='4FGL J1504.4+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 22:09:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 10619: <4FGL_J1504.4+1029_daily_bin1523> in cluster <slac> Done

Job <4FGL_J1504.4+1029_daily_bin1523> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 10 21:55:58 2021
Job was executed on host(s) <bullet0215>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 21:56: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:56:00 2021
Terminated at Fri Sep 10 22:09:16 2021
Results reported at Fri Sep 10 22:09:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_daily_bin1523 226.103 10.4978 634089601 634348801 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 :                                   674.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             267.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   796 sec.
    Turnaround time :                            798 sec.

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

