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


Performing analysis on: 4FGL_J1504.4+1029_daily_bin1431
RA = 226.103, Dec = 10.4978
tmin = 610243201, tmax = 610502401
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='7949', job_status='RUN', time_executed='2021-09-10 21:48:40.740747', time_epoch_executed='1631335720.74' WHERE source_name='4FGL J1504.4+1029' and cadence='daily' and bin_id='1431'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/7949

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/7949/ft1_4FGL_J1504.4+1029_daily_bin1431.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/7949/ft2_4FGL_J1504.4+1029_daily_bin1431.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/7949/ft1_4FGL_J1504.4+1029_daily_bin1431.fits outfile=/scratch/kocevski/7949/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin1431.fits ra=226.103 dec=10.4978 rad=12.0 tmin=610243201.0 tmax=610502401.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.01
user 3.74
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/7949/ft1_filtered_4FGL_J1504.4+1029_daily_bin1431.fits" evtable="EVENTS" scfile=/scratch/kocevski/7949/ft2_4FGL_J1504.4+1029_daily_bin1431.fits sctable="SC_DATA" outfile=/scratch/kocevski/7949/ltcube_610243201_610502401_4FGL_J1504.4+1029_daily_bin1431.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/7949/ft2_4FGL_J1504.4+1029_daily_bin1431.fits
.....................!
real 12.69
user 12.22
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/7949/ft1_filtered_4FGL_J1504.4+1029_daily_bin1431.fits evtable="EVENTS" scfile=/scratch/kocevski/7949/ft2_4FGL_J1504.4+1029_daily_bin1431.fits sctable="SC_DATA" expcube=/scratch/kocevski/7949/ltcube_610243201_610502401_4FGL_J1504.4+1029_daily_bin1431.fits outfile=/scratch/kocevski/7949/expmap_610243201_610502401_4FGL_J1504.4+1029_daily_bin1431.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/7949/ltcube_610243201_610502401_4FGL_J1504.4+1029_daily_bin1431.fits
.....................!
real 192.99
user 185.83
sys 5.24

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/7949/ft1_filtered_4FGL_J1504.4+1029_daily_bin1431.fits scfile=/scratch/kocevski/7949/ft2_4FGL_J1504.4+1029_daily_bin1431.fits outfile=/scratch/kocevski/7949/cmap_610243201_610502401_4FGL_J1504.4+1029_daily_bin1431.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/7949/ft1_filtered_4FGL_J1504.4+1029_daily_bin1431.fits scfile=/scratch/kocevski/7949/ft2_4FGL_J1504.4+1029_daily_bin1431.fits outfile=/scratch/kocevski/7949/cmap_HighResolution_610243201_610502401_4FGL_J1504.4+1029_daily_bin1431.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.55
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    36.052       1.0000         .10000E-03   10000.    
     2 'norm      '    .14856E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .45227       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .14611E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    .77152       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .20929E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    38.052       1.0000         .10000E-03   10000.    
     8 'norm      '    .11497E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10919E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.8696       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.2685       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .15896E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    22.851       1.0000         .10000E-03   10000.    
    14 'norm      '    .95266       1.0000         .10000E-03   10000.    
    15 'norm      '    9.5234       1.0000         .10000E-03   10000.    
    16 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10789E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.7078       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .14343E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .20609E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10238E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.6720       1.0000         .10000E-03   10000.    
    23 'Prefactor '    25.040       1.0000         .10000E-03   10000.    
    24 'Prefactor '    30.636       1.0000         .10000E-03   10000.    
    25 'norm      '    1.4549       1.0000         .10000E-03   10000.    
    26 'Prefactor '    81.715       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.4206       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .77884       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6515.211     FROM MIGRAD    STATUS=CONVERGED   1272 CALLS     4119 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     35.990        43.926        .66746E-04    .11633E-03
   2  norm          .10079E-03    27.265        .13151    ** at limit **
   3  Prefactor     .40728        49.920        .41269E-02   -.52516E-03
   4  Prefactor     .10022E-03    9.2695        .57307E-01** at limit **
   5  norm          .77480        5.0703        .34028E-03   -.42397E-04
   6  Prefactor     .10000E-03    112.39        .18142E-02** at limit **
   7  Prefactor     38.171        49.418        .64974E-04   -.61521E-04
   8  norm          .10000E-03    67.811        .18142E-02** at limit **
   9  Prefactor     .10000E-03    17.780        .18142E-02** at limit **
  10  Prefactor     9.8567        31.356        .12755E-03   -.20411E-04
  11  Prefactor     7.2695        14.246        .74388E-03   -.52222E-04
  12  Prefactor     .10000E-03    53.356        .18142E-02** at limit **
  13  Prefactor     22.874        39.413        .83794E-04    .19944E-04
  14  norm          .95267        .26753        .10407E-03   -.87466E-03
  15  norm          9.5241        3.6236        .88811E-04   -.30044E-03
  16  norm          .10000E-03    2.7563        .13081E-02** at limit **
  17  norm          .10000E-03    31.782        .18142E-02** at limit **
  18  norm          3.7075        3.3511        .13538E-03   -.13915E-03
  19  Prefactor     .10000E-03    20.013        .18142E-02** at limit **
  20  Prefactor     .10000E-03    170.08        .18142E-02** at limit **
  21  Prefactor     .10000E-03    9.4083        .18142E-02** at limit **
  22  Prefactor     8.6726        6.3653        .13612E-03   -.12369E-03
  23  Prefactor     25.077        41.143        .80052E-04   -.22297E-04
  24  Prefactor     30.611        27.789        .72388E-04   -.76641E-05
  25  norm          1.4550        1.7312        .11323E-03    .18775E-04
  26  Prefactor     81.763        75.994        .22216E-03    .48164E-04
  27  Normalizat    1.4207        .29637        .29936E-03   -.26443E-03
  28  Prefactor     .77880        .15983        .22361E-03   -.39097E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 35.9898
  norm       = 0.000100791
  Prefactor  = 0.407282
  Prefactor  = 0.000100217
  norm       = 0.774799
  Prefactor  = 0.000100004
  Prefactor  = 38.1706
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 9.85665
  Prefactor  = 7.26947
  Prefactor  = 0.0001
  Prefactor  = 22.8741
  norm       = 0.952668
  norm       = 9.52406
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.70753
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 8.6726
  Prefactor  = 25.0774
  Prefactor  = 30.6112
  norm       = 1.455
  Prefactor  = 81.7626
  Normalizat = 1.4207
  Prefactor  = 0.778797
 **********
 **   18 **HESSE 
 **********

 FCN=   6515.211     FROM HESSE     STATUS=OK           513 CALLS     4632 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     35.990        43.918        .13349E-04   -1.4507    
   2  norm          .10079E-03    27.048        .13239       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .40728        48.463        .16508E-03   -1.5580    
   4  Prefactor     .10022E-03    8.3951        .59745E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .77480        5.0644        .13611E-04   -1.5532    
   6  Prefactor     .10000E-03    112.41        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     38.171        49.394        .12995E-04   -1.4472    
   8  norm          .10000E-03    67.818        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    17.782        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.8567        31.340        .51021E-05   -1.5080    
  11  Prefactor     7.2695        14.242        .29755E-04   -1.5169    
  12  Prefactor     .10000E-03    53.388        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     22.874        39.394        .33518E-05   -1.4751    
  14  norm          .95267        .26749        .41629E-05   -1.5513    
  15  norm          9.5241        3.6227        .35524E-05   -1.5091    
  16  norm          .10000E-03    2.7564        .26162E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    31.783        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.7075        3.3510        .54153E-05   -1.5323    
  19  Prefactor     .10000E-03    20.014        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    170.21        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    9.4085        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     8.6726        6.3648        .54447E-05   -1.5119    
  23  Prefactor     25.077        41.146        .32021E-05   -1.4706    
  24  Prefactor     30.611        27.789        .14478E-04   -1.4601    
  25  norm          1.4550        1.7312        .45294E-05   -1.5467    
  26  Prefactor     81.763        75.991        .44432E-04   -1.3897    
  27  Normalizat    1.4207        .29626        .59872E-04   -.80032    
  28  Prefactor     .77880        .15998        .89445E-05   -1.0051    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.68405e-09
Minuit parameter uncertainties:
  1  43.9578
  2  0.00925631
  3  8.89178
  4  0.00269895
  5  3.96201
  6  0.00127439
  7  49.447
  8  0.000411705
  9  5.44429e-06
  10  31.3925
  11  14.2491
  12  6.30988e-05
  13  39.4388
  14  0.267491
  15  3.62278
  16  2.74549e-06
  17  7.10669e-05
  18  3.35119
  19  2.36665e-05
  20  0.0017442
  21  9.70646e-06
  22  6.36532
  23  41.193
  24  27.8003
  25  1.73122
  26  76.0818
  27  0.296624
  28  0.160075
Done.

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

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  9.527e-01  2.675e-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.788e-01  1.601e-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.421e+00  2.966e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 29.55
Ra Dec: 226.103 10.498
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 2.32e-07 +/- 6.51e-08
Energy Flux (Fixed Index): 9.39e-05 +/- 2.64e-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) = 6513.64407259
delta logL = 1.56687057227

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6513.6409729
delta logL = 1.56997026506

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .82825       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6746       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3045       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82574       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=   6513.641     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      214 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .82829        2.8427        .40174E-02    .27387E-03
   2  alpha         2.6747        3.7977        .18295        .37580E-04
   3  Normalizat    1.3045        .18240        .69931E-01    .95959E-05
   4  Prefactor     .82574        .10901        .44051E-01    .11035E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.828289
  alpha      = 2.67466
  Normalizat = 1.30451
  Prefactor  = 0.825744
 **********
 **   18 **HESSE 
 **********

 FCN=   6513.641     FROM HESSE     STATUS=OK            33 CALLS      247 TOTAL
                     EDM=   .65E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .82829        .26963        .17798E-04   -1.5526    
   2  alpha         2.6747        .34073        .78857E-02    .69921E-01
   3  Normalizat    1.3045        .28344        .30941E-03   -.83432    
   4  Prefactor     .82574        .16039        .21775E-03   -.98786    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.53291e-13
Minuit parameter uncertainties:
  1  0.269634
  2  0.341801
  3  0.283777
  4  0.160478
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/7949': 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) = 6513.64097282
delta logL = 1.56997034539

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  8.283e-01  2.696e-01  1.000e-04  1.000e+04 ( 1.000e-10)
201        alpha:  2.675e+00  3.418e-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.257e-01  1.605e-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.305e+00  2.838e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 32.76
Ra Dec: 226.103 10.498
Photon Index (Free Index): 2.67 +/- 0.34
Photon Flux (Free Index): 3.25e-07 +/- 9.46e-08
Energy Flux (Free Index): 7.91e-05 +/- 2.14e-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/7949/cmap_HighResolution_610243201_610502401_4FGL_J1504.4+1029_daily_bin1431.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.32e-07', energy_flux2='7.91e-05', photon_flux_error='6.51e-08', dlogl='1.57e+00', energy_flux='9.39e-05', photon_flux2='3.25e-07', job_status='DONE', time_completed='2021-09-10 22:00:38.781547', photon_index_error2='0.34', photon_index2='2.67', ts='29.55', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', energy_flux_error2='2.14e-05', EG='1.42', time_epoch_completed='1631336438.78', return_code='0', job_id='7949', GAL2='0.83', EG2='1.30', return_code2='0', energy_flux_error='2.64e-05', photon_flux_error2='9.46e-08', ts2='32.76', photon_index='2.12' WHERE bin_id='1431' AND source_name='4FGL J1504.4+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 22:00:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0256>
Subject: Job 7949: <4FGL_J1504.4+1029_daily_bin1431> in cluster <slac> Done

Job <4FGL_J1504.4+1029_daily_bin1431> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 10 21:46:20 2021
Job was executed on host(s) <bullet0256>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 21:46:22 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:46:22 2021
Terminated at Fri Sep 10 22:00:39 2021
Results reported at Fri Sep 10 22:00:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_daily_bin1431 226.103 10.4978 610243201 610502401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1504.4+1029 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   672.28 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             281.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   857 sec.
    Turnaround time :                            859 sec.

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

