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


Performing analysis on: 4FGL_J1504.4+1029_daily_bin1035
RA = 226.103, Dec = 10.4978
tmin = 507600001, tmax = 507859201
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='3948', job_status='RUN', time_executed='2021-09-10 21:38:58.789774', time_epoch_executed='1631335138.79' WHERE source_name='4FGL J1504.4+1029' and cadence='daily' and bin_id='1035'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/3948

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/3948/ft1_4FGL_J1504.4+1029_daily_bin1035.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/3948/ft2_4FGL_J1504.4+1029_daily_bin1035.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/3948/ft1_4FGL_J1504.4+1029_daily_bin1035.fits outfile=/scratch/kocevski/3948/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin1035.fits ra=226.103 dec=10.4978 rad=12.0 tmin=507600001.0 tmax=507859201.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.58
user 3.36
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/3948/ft1_filtered_4FGL_J1504.4+1029_daily_bin1035.fits" evtable="EVENTS" scfile=/scratch/kocevski/3948/ft2_4FGL_J1504.4+1029_daily_bin1035.fits sctable="SC_DATA" outfile=/scratch/kocevski/3948/ltcube_507600001_507859201_4FGL_J1504.4+1029_daily_bin1035.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/3948/ft2_4FGL_J1504.4+1029_daily_bin1035.fits
.....................!
real 11.88
user 11.54
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/3948/ft1_filtered_4FGL_J1504.4+1029_daily_bin1035.fits evtable="EVENTS" scfile=/scratch/kocevski/3948/ft2_4FGL_J1504.4+1029_daily_bin1035.fits sctable="SC_DATA" expcube=/scratch/kocevski/3948/ltcube_507600001_507859201_4FGL_J1504.4+1029_daily_bin1035.fits outfile=/scratch/kocevski/3948/expmap_507600001_507859201_4FGL_J1504.4+1029_daily_bin1035.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/3948/ltcube_507600001_507859201_4FGL_J1504.4+1029_daily_bin1035.fits
.....................!
real 191.70
user 186.27
sys 5.05

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/3948/ft1_filtered_4FGL_J1504.4+1029_daily_bin1035.fits scfile=/scratch/kocevski/3948/ft2_4FGL_J1504.4+1029_daily_bin1035.fits outfile=/scratch/kocevski/3948/cmap_507600001_507859201_4FGL_J1504.4+1029_daily_bin1035.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/3948/ft1_filtered_4FGL_J1504.4+1029_daily_bin1035.fits scfile=/scratch/kocevski/3948/ft2_4FGL_J1504.4+1029_daily_bin1035.fits outfile=/scratch/kocevski/3948/cmap_HighResolution_507600001_507859201_4FGL_J1504.4+1029_daily_bin1035.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10170E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.5206       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12435E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.2342       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .57884E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .78031E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.1914       1.0000         .10000E-03   10000.    
    13 'Prefactor '    25.980       1.0000         .10000E-03   10000.    
    14 'norm      '    .81571       1.0000         .10000E-03   10000.    
    15 'norm      '    2.1688       1.0000         .10000E-03   10000.    
    16 'norm      '    5.9410       1.0000         .10000E-03   10000.    
    17 'norm      '    33.248       1.0000         .10000E-03   10000.    
    18 'norm      '    .11442E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.4343       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .83973       1.0000         .10000E-03   10000.    
    26 'Prefactor '    48.263       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.4789       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .85772       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=   7725.040     FROM MIGRAD    STATUS=CONVERGED    746 CALLS     3584 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    156.42       -.10165E-06** at limit **
   2  norm          .10000E-03    11.813        .12070E-06** at limit **
   3  Prefactor     5.5178        5.2959        .28873E-06    .82490E-03
   4  Prefactor     .10000E-03    9.0495        .10517E-06** at limit **
   5  norm          4.2320        3.6278       -.22075E-06   -.20810E-03
   6  Prefactor     .10000E-03    30.070        .92479E-05** at limit **
   7  Prefactor     .10000E-03    23.152       -.77925E-06** at limit **
   8  norm          .10103E-03    8.5537       -.29944E-06** at limit **
   9  Prefactor     .10000E-03    132.76       -.25260E-05** at limit **
  10  Prefactor     .10000E-03    9.0685       -.86718E-06** at limit **
  11  Prefactor     .10000E-03    26.223        .34729E-05** at limit **
  12  Prefactor     5.1691        45.960        .41113E-05   -.19882E-04
  13  Prefactor     25.975        41.231       -.24925E-05   -.92115E-05
  14  norm          .81573        .23570       -.34586E-07   -.13599E-03
  15  norm          2.1728        2.7032       -.66364E-06   -.11058E-02
  16  norm          5.9410        5.4353       -.51811E-07   -.10116E-04
  17  norm          33.249        33.803       -.28549E-06    .30539E-05
  18  norm          .10001E-03    1.9028        .36401E-06** at limit **
  19  Prefactor     6.4294        106.45       -.12098E-04   -.22835E-05
  20  Prefactor     .10000E-03    10.708        .39599E-06** at limit **
  21  Prefactor     .10000E-03    8.5477       -.42291E-07** at limit **
  22  Prefactor     .10000E-03    1.7718       -.10778E-07** at limit **
  23  Prefactor     .10000E-03    29.242       -.12252E-04** at limit **
  24  Prefactor     .10000E-03    10.927       -.53768E-06** at limit **
  25  norm          .83971        2.3614       -.95789E-06   -.13993E-02
  26  Prefactor     48.195        99.693       -.43571E-04    .55975E-05
  27  Normalizat    1.4786        .22203        .11928E-05    .21410E-04
  28  Prefactor     .85784        .12290        .12573E-05   -.71301E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 5.51781
  Prefactor  = 0.0001
  norm       = 4.23199
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000101026
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.16906
  Prefactor  = 25.9751
  norm       = 0.815727
  norm       = 2.17281
  norm       = 5.941
  norm       = 33.2488
  norm       = 0.000100011
  Prefactor  = 6.42936
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.839705
  Prefactor  = 48.1947
  Normalizat = 1.47855
  Prefactor  = 0.857838
 **********
 **   18 **HESSE 
 **********

 FCN=   7725.040     FROM HESSE     STATUS=OK           529 CALLS     4113 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    159.41        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    11.817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.5178        5.3123        .85500E-03   -1.5238    
   4  Prefactor     .10000E-03    9.4145        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.2320        3.6259        .15036E-03   -1.5297    
   6  Prefactor     .10000E-03    30.017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    23.278        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10103E-03    9.3127        .86239E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    138.05        .37039E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.0995        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    26.333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.1691        45.381        .17643E-03   -1.5253    
  13  Prefactor     25.975        41.085        .78593E-04   -1.4688    
  14  norm          .81573        .23536        .21724E-04   -1.5527    
  15  norm          2.1728        2.6441        .14766E-03   -1.5413    
  16  norm          5.9410        5.4351        .16475E-03   -1.5220    
  17  norm          33.249        33.805        .69494E-04   -1.4554    
  18  norm          .10001E-03    11.435        .22854E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.4294        106.87        .15822E-03   -1.5201    
  20  Prefactor     .10000E-03    10.713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.5522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    1.7833        .11424E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    29.191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    10.938        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .83971        2.3450        .22270E-03   -1.5525    
  26  Prefactor     48.195        98.637        .57720E-04   -1.4318    
  27  Normalizat    1.4786        .26732        .29819E-03   -.78383    
  28  Prefactor     .85784        .14730        .21390E-03   -.97630    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.06936e-09
Minuit parameter uncertainties:
  1  0.000690024
  2  7.95464e-06
  3  5.31273
  4  5.93889e-05
  5  3.62605
  6  2.58502e-05
  7  2.54158e-05
  8  0.00618276
  9  0.00108403
  10  1.08828e-05
  11  0.000141841
  12  30.6627
  13  41.1301
  14  0.235363
  15  2.64426
  16  5.43556
  17  33.8241
  18  0.00072231
  19  52.5354
  20  3.94009e-06
  21  1.03183e-06
  22  1.88802e-06
  23  1.40498e-05
  24  8.15888e-06
  25  2.3453
  26  98.9732
  27  0.267579
  28  0.147371
Done.

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

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  8.157e-01  2.354e-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:  8.578e-01  1.474e-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.479e+00  2.676e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 26.95
Ra Dec: 226.103 10.498
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 1.99e-07 +/- 5.73e-08
Energy Flux (Fixed Index): 8.04e-05 +/- 2.32e-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) = 7723.67276388
delta logL = 1.36679037596

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7723.66715004
delta logL = 1.3724042139

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .75498       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6422       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3686       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89929       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=   7723.667     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      219 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .75498        2.5748        .41963E-02    .46989E-03
   2  alpha         2.6421        3.7887        .20554        .45144E-04
   3  Normalizat    1.3686        .15612        .69412E-01    .10037E-04
   4  Prefactor     .89931        .86915E-01    .44996E-01    .93336E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.75498
  alpha      = 2.64212
  Normalizat = 1.36858
  Prefactor  = 0.899313
 **********
 **   18 **HESSE 
 **********

 FCN=   7723.667     FROM HESSE     STATUS=OK            33 CALLS      252 TOTAL
                     EDM=   .88E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .75498        .23123        .18613E-04   -1.5534    
   2  alpha         2.6421        .33035        .87574E-02    .56880E-01
   3  Normalizat    1.3686        .26854        .30710E-03   -.81542    
   4  Prefactor     .89931        .14923        .20931E-03   -.96165    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.77155e-13
Minuit parameter uncertainties:
  1  0.231233
  2  0.331323
  3  0.268821
  4  0.149296
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/3948': 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) = 7723.66714997
delta logL = 1.37240428164

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  7.550e-01  2.312e-01  1.000e-04  1.000e+04 ( 1.000e-10)
201        alpha:  2.642e+00  3.313e-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.993e-01  1.493e-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.369e+00  2.688e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 29.97
Ra Dec: 226.103 10.498
Photon Index (Free Index): 2.64 +/- 0.33
Photon Flux (Free Index): 2.87e-07 +/- 8.70e-08
Energy Flux (Free Index): 7.14e-05 +/- 1.90e-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/3948/cmap_HighResolution_507600001_507859201_4FGL_J1504.4+1029_daily_bin1035.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.99e-07', energy_flux2='7.14e-05', photon_flux_error='5.73e-08', dlogl='1.37e+00', energy_flux='8.04e-05', photon_flux2='2.87e-07', job_status='DONE', time_completed='2021-09-10 21:50:27.375310', photon_index_error2='0.33', photon_index2='2.64', ts='26.95', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', energy_flux_error2='1.90e-05', EG='1.48', time_epoch_completed='1631335827.38', return_code='0', job_id='3948', GAL2='0.90', EG2='1.37', return_code2='0', energy_flux_error='2.32e-05', photon_flux_error2='8.70e-08', ts2='29.97', photon_index='2.12' WHERE bin_id='1035' AND source_name='4FGL J1504.4+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 21:50:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 3948: <4FGL_J1504.4+1029_daily_bin1035> in cluster <slac> Done

Job <4FGL_J1504.4+1029_daily_bin1035> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep 10 21:36:33 2021
Job was executed on host(s) <bullet0255>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 21:36:35 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:36:35 2021
Terminated at Fri Sep 10 21:50:27 2021
Results reported at Fri Sep 10 21:50:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_daily_bin1035 226.103 10.4978 507600001 507859201 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 :                                   687.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             300.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   832 sec.
    Turnaround time :                            834 sec.

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

