/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 228 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 = 7480
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1504.4+1029_daily_bin334
RA = 226.103, Dec = 10.4978
tmin = 325900801, tmax = 326160001
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='998782', job_status='RUN', time_executed='2021-09-10 21:25:01.294715', time_epoch_executed='1631334301.29' WHERE source_name='4FGL J1504.4+1029' and cadence='daily' and bin_id='334'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/998782

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/998782/ft1_4FGL_J1504.4+1029_daily_bin334.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/998782/ft2_4FGL_J1504.4+1029_daily_bin334.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/998782/ft1_4FGL_J1504.4+1029_daily_bin334.fits outfile=/scratch/kocevski/998782/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin334.fits ra=226.103 dec=10.4978 rad=12.0 tmin=325900801.0 tmax=326160001.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.45
user 3.25
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/998782/ft1_filtered_4FGL_J1504.4+1029_daily_bin334.fits evtable="EVENTS" scfile=/scratch/kocevski/998782/ft2_4FGL_J1504.4+1029_daily_bin334.fits sctable="SC_DATA" expcube=/scratch/kocevski/998782/ltcube_325900801_326160001_4FGL_J1504.4+1029_daily_bin334.fits outfile=/scratch/kocevski/998782/expmap_325900801_326160001_4FGL_J1504.4+1029_daily_bin334.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/998782/ltcube_325900801_326160001_4FGL_J1504.4+1029_daily_bin334.fits
.....................!
real 192.26
user 185.98
sys 5.84

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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/998782/ft1_filtered_4FGL_J1504.4+1029_daily_bin334.fits scfile=/scratch/kocevski/998782/ft2_4FGL_J1504.4+1029_daily_bin334.fits outfile=/scratch/kocevski/998782/cmap_HighResolution_325900801_326160001_4FGL_J1504.4+1029_daily_bin334.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.57
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    68.336       1.0000         .10000E-03   10000.    
     2 'norm      '    17.696       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .73961       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.590       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.781       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .92877       1.0000         .10000E-03   10000.    
    15 'norm      '    1.8005       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    38.639       1.0000         .10000E-03   10000.    
    18 'norm      '    4.6655       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .22632E-01   1.0000         .10000E-03   10000.    
    23 'Prefactor '    32.904       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    35.039       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.3564       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .90322       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=   7479.078     FROM MIGRAD    STATUS=CONVERGED    682 CALLS     3499 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     68.341        38.929        .89469E-06   -.13114E-05
   2  norm          17.695        21.194       -.38860E-06   -.30981E-05
   3  Prefactor     .74567        6.0236       -.83030E-06   -.27583E-03
   4  Prefactor     .10000E-03    6.7461        .44336E-06** at limit **
   5  norm          .10000E-03    1.7163        .16334E-07** at limit **
   6  Prefactor     .10000E-03    26.236        .15302E-07** at limit **
   7  Prefactor     12.590        14.561       -.13567E-06    .57061E-05
   8  norm          .10000E-03    4.8369        .72150E-07** at limit **
   9  Prefactor     .10000E-03    9.5857       -.15530E-05** at limit **
  10  Prefactor     15.785        27.514       -.39351E-05   -.13135E-04
  11  Prefactor     .10000E-03    9.2234        .12737E-06** at limit **
  12  Prefactor     .10000E-03    7.6989       -.13925E-05** at limit **
  13  Prefactor     .10000E-03    10.984       -.29800E-05** at limit **
  14  norm          .92880        .25845        .56837E-07   -.37499E-03
  15  norm          1.8007        2.7123       -.13282E-07   -.91720E-03
  16  norm          .10000E-03    4.0575       -.13516E-07** at limit **
  17  norm          38.629        39.385       -.44223E-05   -.96989E-06
  18  norm          4.6652        4.0813        .52680E-07   -.28772E-03
  19  Prefactor     .10000E-03    8.8465        .17753E-05** at limit **
  20  Prefactor     .10000E-03    16.225       -.79318E-06** at limit **
  21  Prefactor     .10000E-03    8.9363        .14469E-05** at limit **
  22  Prefactor     .10002E-03    3.6100        .83369E-07** at limit **
  23  Prefactor     32.901        37.429       -.31716E-05   -.88588E-05
  24  Prefactor     .10000E-03    12.244        .33567E-05** at limit **
  25  norm          .10000E-03    1.1971       -.14383E-07** at limit **
  26  Prefactor     35.103        91.071        .88426E-04   -.56561E-06
  27  Normalizat    1.3560        .22802       -.14343E-05    .24258E-04
  28  Prefactor     .90342        .12672       -.86087E-06    .22523E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 68.3415
  norm       = 17.6952
  Prefactor  = 0.745671
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.5905
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.7847
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.928799
  norm       = 1.80071
  norm       = 0.0001
  norm       = 38.6295
  norm       = 4.66523
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100017
  Prefactor  = 32.9006
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 35.1026
  Normalizat = 1.35604
  Prefactor  = 0.903424
 **********
 **   18 **HESSE 
 **********

 FCN=   7479.078     FROM HESSE     STATUS=OK           525 CALLS     4024 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     68.341        38.976        .48555E-04   -1.4053    
   2  norm          17.695        21.194        .95209E-04   -1.4866    
   3  Prefactor     .74567        17.460        .40440E-02   -1.5535    
   4  Prefactor     .10000E-03    6.8595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.7468        .11062E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    26.251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.590        14.562        .11289E-03   -1.4998    
   8  norm          .10000E-03    4.8381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.5993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     15.785        27.625        .10082E-03   -1.4913    
  11  Prefactor     .10000E-03    9.2566        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.7051        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    10.986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .92880        .25810        .21677E-04   -1.5515    
  15  norm          1.8007        2.6876        .16188E-03   -1.5440    
  16  norm          .10000E-03    4.0800        .17011E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          38.629        39.393        .32240E-03   -1.4464    
  18  norm          4.6652        4.0740        .15548E-03   -1.5276    
  19  Prefactor     .10000E-03    8.8485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    16.235        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.9425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10002E-03    8.8160        .50621E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     32.901        37.447        .69856E-04   -1.4560    
  24  Prefactor     .10000E-03    12.251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    1.2084        .92393E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     35.103        90.732        .67700E-04   -1.4522    
  27  Normalizat    1.3560        .27542        .30758E-03   -.81909    
  28  Prefactor     .90342        .15362        .21068E-03   -.96022    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.1975e-10
Minuit parameter uncertainties:
  1  38.9906
  2  21.2026
  3  7.21843
  4  4.47422e-05
  5  5.34776e-06
  6  1.85163e-05
  7  14.5658
  8  6.80362e-06
  9  1.64565e-05
  10  27.6472
  11  2.72058e-05
  12  9.92394e-06
  13  7.71495e-06
  14  0.258098
  15  2.68776
  16  3.73147e-06
  17  39.4194
  18  4.07428
  19  5.25927e-06
  20  7.38605e-06
  21  4.90439e-06
  22  0.000782142
  23  37.4739
  24  2.08084e-05
  25  1.43873e-07
  26  91.0917
  27  0.275715
  28  0.15369
Done.

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

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  9.288e-01  2.581e-01  1.000e-04  1.000e+04 ( 1.000e-10)
201        alpha:  2.124e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
202         beta:  9.862e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
203           Eb:  5.027e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
469    Prefactor:  9.034e-01  1.537e-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.356e+00  2.757e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 35.03
Ra Dec: 226.103 10.498
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 2.26e-07 +/- 6.28e-08
Energy Flux (Fixed Index): 9.16e-05 +/- 2.54e-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) = 7478.91112252
delta logL = 0.167096013678

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7478.9048668
delta logL = 0.173351731776

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .93537       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3123       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3068       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92183       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=   7478.905     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      202 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .93537        3.3337        .47123E-02   -.12285E-02
   2  alpha         2.3123        3.6510        .22903        .13333E-04
   3  Normalizat    1.3068        .40993        .70548E-01    .84598E-05
   4  Prefactor     .92182        .22766        .45283E-01    .16502E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.935367
  alpha      = 2.3123
  Normalizat = 1.30684
  Prefactor  = 0.921824
 **********
 **   18 **HESSE 
 **********

 FCN=   7478.905     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .84E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .93537        .25028        .20869E-04   -1.5515    
   2  alpha         2.3123        .32223        .94154E-02   -.75152E-01
   3  Normalizat    1.3068        .27858        .31215E-03   -.83362    
   4  Prefactor     .92182        .15493        .20877E-03   -.95383    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.37661e-11
Minuit parameter uncertainties:
  1  0.250276
  2  0.323133
  3  0.278898
  4  0.155002
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/998782': 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) = 7478.9048668
delta logL = 0.173351732398

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  9.354e-01  2.503e-01  1.000e-04  1.000e+04 ( 1.000e-10)
201        alpha:  2.312e+00  3.231e-01  0.000e+00  5.000e+00 ( 1.000e+00)
202         beta:  9.862e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
203           Eb:  5.027e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
469    Prefactor:  9.218e-01  1.550e-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.307e+00  2.789e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 35.34
Ra Dec: 226.103 10.498
Photon Index (Free Index): 2.31 +/- 0.32
Photon Flux (Free Index): 2.64e-07 +/- 9.28e-08
Energy Flux (Free Index): 8.62e-05 +/- 2.43e-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/998782/cmap_HighResolution_325900801_326160001_4FGL_J1504.4+1029_daily_bin334.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.26e-07', energy_flux2='8.62e-05', photon_flux_error='6.28e-08', dlogl='1.73e-01', energy_flux='9.16e-05', photon_flux2='2.64e-07', job_status='DONE', time_completed='2021-09-10 21:36:13.419904', photon_index_error2='0.32', photon_index2='2.31', ts='35.03', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', energy_flux_error2='2.43e-05', EG='1.36', time_epoch_completed='1631334973.42', return_code='0', job_id='998782', GAL2='0.92', EG2='1.31', return_code2='0', energy_flux_error='2.54e-05', photon_flux_error2='9.28e-08', ts2='35.34', photon_index='2.12' WHERE bin_id='334' AND source_name='4FGL J1504.4+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 21:36:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 998782: <4FGL_J1504.4+1029_daily_bin334> in cluster <slac> Done

Job <4FGL_J1504.4+1029_daily_bin334> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 10 21:21:04 2021
Job was executed on host(s) <bullet0058>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 21:21:05 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:21:05 2021
Terminated at Fri Sep 10 21:36:14 2021
Results reported at Fri Sep 10 21:36:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_daily_bin334 226.103 10.4978 325900801 326160001 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 :                                   670.06 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             273.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   908 sec.
    Turnaround time :                            910 sec.

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

