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


Performing analysis on: 4FGL_J1504.4+1029_daily_bin1359
RA = 226.103, Dec = 10.4978
tmin = 591580801, tmax = 591840001
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='7844', job_status='RUN', time_executed='2021-09-10 21:48:32.492079', time_epoch_executed='1631335712.49' WHERE source_name='4FGL J1504.4+1029' and cadence='daily' and bin_id='1359'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/7844

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/7844/ft1_4FGL_J1504.4+1029_daily_bin1359.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/7844/ft2_4FGL_J1504.4+1029_daily_bin1359.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/7844/ft1_4FGL_J1504.4+1029_daily_bin1359.fits outfile=/scratch/kocevski/7844/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin1359.fits ra=226.103 dec=10.4978 rad=12.0 tmin=591580801.0 tmax=591840001.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.83
user 3.60
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/7844/ft1_filtered_4FGL_J1504.4+1029_daily_bin1359.fits evtable="EVENTS" scfile=/scratch/kocevski/7844/ft2_4FGL_J1504.4+1029_daily_bin1359.fits sctable="SC_DATA" expcube=/scratch/kocevski/7844/ltcube_591580801_591840001_4FGL_J1504.4+1029_daily_bin1359.fits outfile=/scratch/kocevski/7844/expmap_591580801_591840001_4FGL_J1504.4+1029_daily_bin1359.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/7844/ltcube_591580801_591840001_4FGL_J1504.4+1029_daily_bin1359.fits
.....................!
real 191.73
user 186.58
sys 4.82

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/7844/ft1_filtered_4FGL_J1504.4+1029_daily_bin1359.fits scfile=/scratch/kocevski/7844/ft2_4FGL_J1504.4+1029_daily_bin1359.fits outfile=/scratch/kocevski/7844/cmap_591580801_591840001_4FGL_J1504.4+1029_daily_bin1359.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.50
user 0.37
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/7844/ft1_filtered_4FGL_J1504.4+1029_daily_bin1359.fits scfile=/scratch/kocevski/7844/ft2_4FGL_J1504.4+1029_daily_bin1359.fits outfile=/scratch/kocevski/7844/cmap_HighResolution_591580801_591840001_4FGL_J1504.4+1029_daily_bin1359.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/7844/ft1_filtered_4FGL_J1504.4+1029_daily_bin1359.fits evtable="EVENTS" scfile=/scratch/kocevski/7844/ft2_4FGL_J1504.4+1029_daily_bin1359.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/7844/Model_4FGL_J1504.4+1029_daily_bin1359.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/7844/ft1_filtered_4FGL_J1504.4+1029_daily_bin1359.fits.....................!
real 62.31
user 60.89
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.904       1.0000         .10000E-03   10000.    
     2 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .74074E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.2472       1.0000         .10000E-03   10000.    
     5 'norm      '    8.7159       1.0000         .10000E-03   10000.    
     6 'Prefactor '    35.946       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .52177       1.0000         .10000E-03   10000.    
     8 'norm      '    .96023E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    20.277       1.0000         .10000E-03   10000.    
    10 'Prefactor '    24.410       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .45053       1.0000         .10000E-03   10000.    
    15 'norm      '    .35819       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.0562       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    40.113       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10141E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    43.761       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .22639E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    11.778       1.0000         .10000E-03   10000.    
    26 'Prefactor '    50.755       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0031       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0118       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=   8766.120     FROM MIGRAD    STATUS=CONVERGED    770 CALLS     3628 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.922        40.904        .90961E-06    .88719E-05
   2  norm          .10000E-03    10.085        .49772E-07** at limit **
   3  Prefactor     .10000E-03    5.2601       -.51928E-07** at limit **
   4  Prefactor     5.2549        7.6150        .69058E-06    .64905E-04
   5  norm          8.7146        4.1899        .58493E-07   -.65685E-05
   6  Prefactor     35.983        53.635        .88265E-06    .71484E-04
   7  Prefactor     .72416E-03    40.799        .21578E-05** at limit **
   8  norm          .41865E-03    21.736       -.17193E-05** at limit **
   9  Prefactor     20.264        22.633        .67299E-06    .12647E-03
  10  Prefactor     24.424        17.443        .20389E-06    .60861E-04
  11  Prefactor     .10000E-03    4.9708        .48905E-07** at limit **
  12  Prefactor     .10000E-03    8.1932        .19429E-06** at limit **
  13  Prefactor     .10000E-03    10.438        .44875E-07** at limit **
  14  norm          .45049        .15227        .13137E-07   -.29970E-03
  15  norm          .35810        1.4418        .14888E-05    .20067E-03
  16  norm          .10000E-03    3.0183       -.46805E-07** at limit **
  17  norm          .10000E-03    10.887       -.27318E-07** at limit **
  18  norm          1.0552        2.8384        .76040E-06   -.14795E-04
  19  Prefactor     .10000E-03    28.879        .37788E-08** at limit **
  20  Prefactor     .10000E-03    11.103       -.80545E-07** at limit **
  21  Prefactor     40.094        32.198        .94546E-06    .93687E-04
  22  Prefactor     .10000E-03    4.3420       -.22902E-06** at limit **
  23  Prefactor     43.750        35.321        .46684E-06    .54406E-04
  24  Prefactor     .10000E-03    116.23       -.81573E-06** at limit **
  25  norm          11.777        3.5319       -.11186E-06   -.73713E-04
  26  Prefactor     50.720        58.549       -.29784E-07   -.35054E-04
  27  Normalizat    1.0032        .22412       -.31736E-05   -.24143E-04
  28  Prefactor     1.0120        .12119        .10730E-05   -.27703E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.9219
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.2549
  norm       = 8.71461
  Prefactor  = 35.9828
  Prefactor  = 0.000724163
  norm       = 0.00041865
  Prefactor  = 20.2638
  Prefactor  = 24.4242
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.450493
  norm       = 0.358102
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.05519
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 40.0939
  Prefactor  = 0.0001
  Prefactor  = 43.7502
  Prefactor  = 0.0001
  norm       = 11.7768
  Prefactor  = 50.7198
  Normalizat = 1.0032
  Prefactor  = 1.01199
 **********
 **   18 **HESSE 
 **********

 FCN=   8766.120     FROM HESSE     STATUS=OK           533 CALLS     4161 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.922        41.025        .77234E-04   -1.4670    
   2  norm          .10000E-03    10.087        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    16.403        .39579E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.2549        7.3149        .17547E-03   -1.5249    
   5  norm          8.7146        4.1839        .12607E-03   -1.5117    
   6  Prefactor     35.983        53.868        .66843E-04   -1.4508    
   7  Prefactor     .72416E-03    46.740        .13364       -1.5713    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .41865E-03    26.236        .99178E-01   -1.5712    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     20.264        22.728        .88948E-04   -1.4807    
  10  Prefactor     24.424        17.450        .81077E-04   -1.4719    
  11  Prefactor     .10000E-03    4.9884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.2089        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    10.445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .45049        .15245        .20344E-04   -1.5574    
  15  norm          .35810        1.4450        .21719E-03   -1.5588    
  16  norm          .10000E-03    3.0495        .15885E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    10.888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.0552        2.7651        .24555E-03   -1.5503    
  19  Prefactor     .10000E-03    28.971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    11.109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     40.094        32.399        .63289E-04   -1.4441    
  22  Prefactor     .10000E-03    4.5431        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     43.750        35.354        .60603E-04   -1.4384    
  24  Prefactor     .10000E-03    119.28        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          11.777        3.5307        .46745E-03   -1.5021    
  26  Prefactor     50.720        58.590        .56292E-04   -1.4282    
  27  Normalizat    1.0032        .25572        .33302E-03   -.92923    
  28  Prefactor     1.0120        .13972        .19503E-03   -.92331    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.85229e-10
Minuit parameter uncertainties:
  1  41.0678
  2  2.36168e-07
  3  4.40101e-05
  4  7.31609
  5  4.18399
  6  53.9411
  7  0.341872
  8  0.182948
  9  22.7381
  10  17.4537
  11  3.02357e-06
  12  5.97407e-06
  13  8.53427e-06
  14  0.152452
  15  1.43856
  16  1.12933e-06
  17  8.25213e-06
  18  2.7654
  19  2.65524e-05
  20  8.77976e-07
  21  32.4128
  22  1.21099e-06
  23  35.3706
  24  0.000148012
  25  3.53077
  26  58.6563
  27  0.256032
  28  0.139773
Done.

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

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  4.505e-01  1.525e-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.012e+00  1.398e-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.003e+00  2.560e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 33.68
Ra Dec: 226.103 10.498
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 1.10e-07 +/- 3.71e-08
Energy Flux (Fixed Index): 4.44e-05 +/- 1.50e-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) = 8765.86415531
delta logL = 0.25626465003

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8765.83164053
delta logL = 0.288779434459

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .40089       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8296       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0395       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0004       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=   8765.832     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      211 TOTAL
                     EDM=   .69E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .40108        .14408        .46776E-02   -.28259E-02
   2  alpha         1.8297        .29874        .27661       -.18302E-04
   3  Normalizat    1.0394        .19414        .74112E-01    .93832E-04
   4  Prefactor     1.0005        .11370        .45750E-01    .85304E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.401084
  alpha      = 1.82972
  Normalizat = 1.0394
  Prefactor  = 1.00046
 **********
 **   18 **HESSE 
 **********

 FCN=   8765.832     FROM HESSE     STATUS=OK            31 CALLS      242 TOTAL
                     EDM=   .53E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .40108        .17202        .20589E-04   -1.5581    
   2  alpha         1.8297        .38554        .11244E-01   -.27143    
   3  Normalizat    1.0394        .23528        .32797E-03   -.91722    
   4  Prefactor     1.0005        .13708        .19610E-03   -.92714    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.29165e-11
Minuit parameter uncertainties:
  1  0.172016
  2  0.387209
  3  0.235516
  4  0.137132
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/7844': 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) = 8765.83163975
delta logL = 0.288780216746

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
469    Prefactor:  1.000e+00  1.371e-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.039e+00  2.355e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 34.18
Ra Dec: 226.103 10.498
Photon Index (Free Index): 1.83 +/- 0.39
Photon Flux (Free Index): 8.14e-08 +/- 4.53e-08
Energy Flux (Free Index): 5.17e-05 +/- 2.32e-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/7844/cmap_HighResolution_591580801_591840001_4FGL_J1504.4+1029_daily_bin1359.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.10e-07', energy_flux2='5.17e-05', photon_flux_error='3.71e-08', dlogl='2.89e-01', energy_flux='4.44e-05', photon_flux2='8.14e-08', job_status='DONE', time_completed='2021-09-10 22:01:27.195967', photon_index_error2='0.39', photon_index2='1.83', ts='33.68', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='2.32e-05', EG='1.00', time_epoch_completed='1631336487.2', return_code='0', job_id='7844', GAL2='1.00', EG2='1.04', return_code2='0', energy_flux_error='1.50e-05', photon_flux_error2='4.53e-08', ts2='34.18', photon_index='2.12' WHERE bin_id='1359' AND source_name='4FGL J1504.4+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 22:01:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0119>
Subject: Job 7844: <4FGL_J1504.4+1029_daily_bin1359> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_daily_bin1359 226.103 10.4978 591580801 591840001 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 :                                   744.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   913 sec.
    Turnaround time :                            915 sec.

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

