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


Performing analysis on: 4FGL_J1504.4+1029_daily_bin1587
RA = 226.103, Dec = 10.4978
tmin = 650678401, tmax = 650937601
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='9309', job_status='RUN', time_executed='2021-09-10 21:53:55.849725', time_epoch_executed='1631336035.85' WHERE source_name='4FGL J1504.4+1029' and cadence='daily' and bin_id='1587'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/9309

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/9309/ft1_4FGL_J1504.4+1029_daily_bin1587.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/9309/ft2_4FGL_J1504.4+1029_daily_bin1587.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/9309/ft1_4FGL_J1504.4+1029_daily_bin1587.fits outfile=/scratch/kocevski/9309/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin1587.fits ra=226.103 dec=10.4978 rad=12.0 tmin=650678401.0 tmax=650937601.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.70
user 3.46
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/9309/ft1_filtered_4FGL_J1504.4+1029_daily_bin1587.fits evtable="EVENTS" scfile=/scratch/kocevski/9309/ft2_4FGL_J1504.4+1029_daily_bin1587.fits sctable="SC_DATA" expcube=/scratch/kocevski/9309/ltcube_650678401_650937601_4FGL_J1504.4+1029_daily_bin1587.fits outfile=/scratch/kocevski/9309/expmap_650678401_650937601_4FGL_J1504.4+1029_daily_bin1587.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/9309/ltcube_650678401_650937601_4FGL_J1504.4+1029_daily_bin1587.fits
.....................!
real 190.47
user 185.06
sys 4.94

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/9309/ft1_filtered_4FGL_J1504.4+1029_daily_bin1587.fits scfile=/scratch/kocevski/9309/ft2_4FGL_J1504.4+1029_daily_bin1587.fits outfile=/scratch/kocevski/9309/cmap_650678401_650937601_4FGL_J1504.4+1029_daily_bin1587.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/9309/ft1_filtered_4FGL_J1504.4+1029_daily_bin1587.fits scfile=/scratch/kocevski/9309/ft2_4FGL_J1504.4+1029_daily_bin1587.fits outfile=/scratch/kocevski/9309/cmap_HighResolution_650678401_650937601_4FGL_J1504.4+1029_daily_bin1587.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.927       1.0000         .10000E-03   10000.    
     2 'norm      '    .10086E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.387       1.0000         .10000E-03   10000.    
     5 'norm      '    7.1215       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    36.122       1.0000         .10000E-03   10000.    
     8 'norm      '    .10090E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    34.121       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.3471       1.0000         .10000E-03   10000.    
    14 'norm      '    .13037       1.0000         .10000E-03   10000.    
    15 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .14353E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.2013       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    30.915       1.0000         .10000E-03   10000.    
    21 'Prefactor '    112.99       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .14411E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.1095       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .78778       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1064       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=   7546.894     FROM MIGRAD    STATUS=CONVERGED    690 CALLS     3562 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.926        25.697       -.79285E-06    .96165E-04
   2  norm          .10000E-03    39.918       -.23484E-04** at limit **
   3  Prefactor     .10000E-03    1.8582        .21209E-07** at limit **
   4  Prefactor     11.386        7.1339        .85927E-08   -.11350E-03
   5  norm          7.1211        4.5926       -.23579E-06   -.36064E-03
   6  Prefactor     .10000E-03    17.179       -.11370E-04** at limit **
   7  Prefactor     36.131        40.999        .48065E-05    .23356E-03
   8  norm          .10000E-03    15.653       -.17064E-04** at limit **
   9  Prefactor     .10000E-03    60.344        .41125E-05** at limit **
  10  Prefactor     34.123        24.863       -.10336E-05    .60104E-04
  11  Prefactor     .10000E-03    10.333       -.47808E-06** at limit **
  12  Prefactor     .10000E-03    69.170        .33918E-04** at limit **
  13  Prefactor     8.3456        58.530       -.18811E-05   -.71655E-04
  14  norm          .13028        .14696       -.37380E-07   -.29097E-02
  15  norm          .10000E-03    1.0639       -.83523E-07** at limit **
  16  norm          .10000E-03    2.6182       -.13241E-06** at limit **
  17  norm          .10000E-03    35.232        .14442E-04** at limit **
  18  norm          3.2013        2.8946       -.84714E-06   -.30670E-02
  19  Prefactor     .10000E-03    18.568        .17903E-04** at limit **
  20  Prefactor     30.916        34.872       -.13075E-06    .55466E-05
  21  Prefactor     112.97        48.207       -.80025E-05    .62480E-04
  22  Prefactor     .10000E-03    6.5131       -.11743E-06** at limit **
  23  Prefactor     .10000E-03    135.85       -.40732E-04** at limit **
  24  Prefactor     .10000E-03    14.598        .12737E-04** at limit **
  25  norm          1.1067        2.6179       -.35149E-06   -.85507E-03
  26  Prefactor     .10000E-03    38.289       -.11414E-04** at limit **
  27  Normalizat    .78784        .23215        .28230E-05    .84974E-05
  28  Prefactor     1.1064        .12729        .16045E-07    .16384E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.9256
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.3863
  norm       = 7.12108
  Prefactor  = 0.0001
  Prefactor  = 36.1306
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 34.1231
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 8.34562
  norm       = 0.130283
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.20129
  Prefactor  = 0.0001
  Prefactor  = 30.9159
  Prefactor  = 112.975
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 1.10673
  Prefactor  = 0.0001
  Normalizat = 0.78784
  Prefactor  = 1.10637
 **********
 **   18 **HESSE 
 **********

 FCN=   7546.894     FROM HESSE     STATUS=OK           519 CALLS     4081 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.926        25.687        .89725E-04   -1.4815    
   2  norm          .10000E-03    40.446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.8593        .11564E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.386        7.1408        .11872E-03   -1.5033    
   5  norm          7.1211        4.5893        .14353E-03   -1.5174    
   6  Prefactor     .10000E-03    17.169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     36.131        41.131        .66681E-04   -1.4505    
   8  norm          .10000E-03    15.725        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    61.027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     34.123        24.847        .68602E-04   -1.4539    
  11  Prefactor     .10000E-03    10.371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    69.500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.3456        58.347        .13876E-03   -1.5130    
  14  norm          .13028        .13409        .33307E-03   -1.5636    
  15  norm          .10000E-03    1.9254        .17142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    6.1618        .27407E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    35.225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.2013        2.9184        .68571E-03   -1.5350    
  19  Prefactor     .10000E-03    18.539        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     30.916        34.868        .72061E-04   -1.4595    
  21  Prefactor     112.97        48.143        .37845E-04   -1.3578    
  22  Prefactor     .10000E-03    6.7239        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    135.83        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    14.591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.1067        2.3115        .20853E-02   -1.5498    
  26  Prefactor     .10000E-03    38.301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .78784        .26769        .36688E-03   -1.0052    
  28  Prefactor     1.1064        .14899        .18475E-03   -.89263    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.48908e-09
Minuit parameter uncertainties:
  1  25.7009
  2  0.000212154
  3  1.826e-06
  4  7.14138
  5  4.58951
  6  1.38271e-05
  7  41.1628
  8  0.00013398
  9  0.000411691
  10  24.8544
  11  2.1365e-05
  12  0.000448425
  13  44.1948
  14  0.134092
  15  9.55251e-06
  16  2.8156e-05
  17  1.62554e-05
  18  2.91851
  19  1.34034e-05
  20  34.8906
  21  48.1592
  22  2.44597e-05
  23  0.00123713
  24  1.85425e-05
  25  2.31165
  26  1.15836e-06
  27  0.268142
  28  0.149049
Done.

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

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  1.303e-01  1.341e-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.106e+00  1.490e-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:  7.878e-01  2.681e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.33
Ra Dec: 226.103 10.498
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 3.17e-08 +/- 3.26e-08
Energy Flux (Fixed Index): 1.28e-05 +/- 1.32e-05

TS (Fixed Index): 1.33
Ra Dec: 226.103 10.498
Photon Flux Upper Limit: 1.06e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.30e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/9309/likelihoodResults_650678401_650937601_4FGL_J1504.4+1029_daily_bin1587.txt

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) = 7546.86972426
delta logL = 0.023845373149

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7546.86782902
delta logL = 0.0257406176461

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12373       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8549       1.0000          .0000       5.0000    
     3 'Normalizat'    .79822       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1020       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=   7546.868     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      207 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .12368        .18313        .67656E-02    .28223E-02
   2  alpha         1.8552        .86489        .43032       -.48154E-04
   3  Normalizat    .79814        .21423        .82362E-01    .31663E-04
   4  Prefactor     1.1021        .12660        .37510E-01   -.12361E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.12368
  alpha      = 1.85516
  Normalizat = 0.798135
  Prefactor  = 1.10208
 **********
 **   18 **HESSE 
 **********

 FCN=   7546.868     FROM HESSE     STATUS=OK            35 CALLS      242 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .12368        .13482        .32447E-03   -1.5638    
   2  alpha         1.8552        1.0197        .23011E-01   -.26088    
   3  Normalizat    .79814        .24972        .36468E-03   -1.0014    
   4  Prefactor     1.1021        .14696        .18505E-03   -.89400    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0188e-11
Minuit parameter uncertainties:
  1  0.134823
  2  1.05275
  3  0.250084
  4  0.147019
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/9309': 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) = 7546.86782882
delta logL = 0.0257408115958

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  1.237e-01  1.348e-01  1.000e-04  1.000e+04 ( 1.000e-10)
201        alpha:  1.855e+00  1.053e+00  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.102e+00  1.470e-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:  7.981e-01  2.501e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.38
Ra Dec: 226.103 10.498
Photon Index (Free Index): 1.86 +/- 1.05
Photon Flux (Free Index): 2.54e-08 +/- 3.53e-08
Energy Flux (Free Index): 1.54e-05 +/- 2.07e-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/9309/cmap_HighResolution_650678401_650937601_4FGL_J1504.4+1029_daily_bin1587.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.30e-05', comment='SUCCESS', photon_flux='3.17e-08', energy_flux2='1.54e-05', photon_flux_error='3.26e-08', dlogl='2.57e-02', energy_flux='1.28e-05', photon_flux2='2.54e-08', job_status='DONE', time_completed='2021-09-10 22:06:39.104087', photon_index_error2='1.05', photon_index2='1.86', ts='1.33', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='1.06e-07', energy_flux_error2='2.07e-05', EG='0.79', time_epoch_completed='1631336799.1', return_code='0', job_id='9309', GAL2='1.10', EG2='0.80', return_code2='0', energy_flux_error='1.32e-05', photon_flux_error2='3.53e-08', ts2='1.38', photon_index='2.12' WHERE bin_id='1587' AND source_name='4FGL J1504.4+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 22:06:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0281>
Subject: Job 9309: <4FGL_J1504.4+1029_daily_bin1587> in cluster <slac> Done

Job <4FGL_J1504.4+1029_daily_bin1587> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep 10 21:51:21 2021
Job was executed on host(s) <bullet0281>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 21:51:23 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:51:23 2021
Terminated at Fri Sep 10 22:06:39 2021
Results reported at Fri Sep 10 22:06:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_daily_bin1587 226.103 10.4978 650678401 650937601 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 :                                   754.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             314.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   916 sec.
    Turnaround time :                            918 sec.

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

