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


Performing analysis on: 4FGL_J1504.4+1029_daily_bin1229
RA = 226.103, Dec = 10.4978
tmin = 557884801, tmax = 558144001
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='5912', job_status='RUN', time_executed='2021-09-10 21:41:30.280869', time_epoch_executed='1631335290.28' WHERE source_name='4FGL J1504.4+1029' and cadence='daily' and bin_id='1229'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/5912

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/5912/ft1_4FGL_J1504.4+1029_daily_bin1229.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/5912/ft2_4FGL_J1504.4+1029_daily_bin1229.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/5912/ft1_4FGL_J1504.4+1029_daily_bin1229.fits outfile=/scratch/kocevski/5912/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin1229.fits ra=226.103 dec=10.4978 rad=12.0 tmin=557884801.0 tmax=558144001.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.09
user 3.79
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/5912/ft1_filtered_4FGL_J1504.4+1029_daily_bin1229.fits" evtable="EVENTS" scfile=/scratch/kocevski/5912/ft2_4FGL_J1504.4+1029_daily_bin1229.fits sctable="SC_DATA" outfile=/scratch/kocevski/5912/ltcube_557884801_558144001_4FGL_J1504.4+1029_daily_bin1229.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/5912/ft2_4FGL_J1504.4+1029_daily_bin1229.fits
.....................!
real 12.04
user 11.66
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/5912/ft1_filtered_4FGL_J1504.4+1029_daily_bin1229.fits evtable="EVENTS" scfile=/scratch/kocevski/5912/ft2_4FGL_J1504.4+1029_daily_bin1229.fits sctable="SC_DATA" expcube=/scratch/kocevski/5912/ltcube_557884801_558144001_4FGL_J1504.4+1029_daily_bin1229.fits outfile=/scratch/kocevski/5912/expmap_557884801_558144001_4FGL_J1504.4+1029_daily_bin1229.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/5912/ltcube_557884801_558144001_4FGL_J1504.4+1029_daily_bin1229.fits
.....................!
real 190.62
user 185.61
sys 4.61

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/5912/ft1_filtered_4FGL_J1504.4+1029_daily_bin1229.fits scfile=/scratch/kocevski/5912/ft2_4FGL_J1504.4+1029_daily_bin1229.fits outfile=/scratch/kocevski/5912/cmap_557884801_558144001_4FGL_J1504.4+1029_daily_bin1229.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/5912/ft1_filtered_4FGL_J1504.4+1029_daily_bin1229.fits scfile=/scratch/kocevski/5912/ft2_4FGL_J1504.4+1029_daily_bin1229.fits outfile=/scratch/kocevski/5912/cmap_HighResolution_557884801_558144001_4FGL_J1504.4+1029_daily_bin1229.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.243       1.0000         .10000E-03   10000.    
     2 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10315E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    8.2064       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.1638       1.0000         .10000E-03   10000.    
     8 'norm      '    .25076E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .43494E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.4986       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11098E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.1180       1.0000         .10000E-03   10000.    
    15 'norm      '    2.6246       1.0000         .10000E-03   10000.    
    16 'norm      '    2.0238       1.0000         .10000E-03   10000.    
    17 'norm      '    .10070E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.9293       1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.0023       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.5251       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .18282E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    6.3806       1.0000         .10000E-03   10000.    
    25 'norm      '    1.6303       1.0000         .10000E-03   10000.    
    26 'Prefactor '    80.172       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.5522       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .75152       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=   8256.558     FROM MIGRAD    STATUS=CONVERGED    720 CALLS     4071 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.234        17.681       -.46051E-06   -.12947E-03
   2  norm          .10000E-03    6.5593        .21535E-07** at limit **
   3  Prefactor     .10000E-03    7.0494        .21330E-07** at limit **
   4  Prefactor     .10000E-03    4.2323        .27400E-07** at limit **
   5  norm          8.2069        6.0776       -.21541E-07   -.38370E-05
   6  Prefactor     .10000E-03    20.516       -.71123E-06** at limit **
   7  Prefactor     4.1822        29.700       -.52502E-05    .29207E-04
   8  norm          .10002E-03    115.39        .19204E-04** at limit **
   9  Prefactor     .10003E-03    52.980       -.94139E-05** at limit **
  10  Prefactor     .10000E-03    11.916        .36010E-06** at limit **
  11  Prefactor     4.5066        23.068        .22794E-05    .11793E-03
  12  Prefactor     .10000E-03    57.136        .13739E-05** at limit **
  13  Prefactor     .10000E-03    17.163        .14544E-05** at limit **
  14  norm          1.1180        .23243        .77428E-11   -.84680E-03
  15  norm          2.6248        1.9031        .42536E-07    .11892E-03
  16  norm          2.0244        3.1036        .19899E-07    .78474E-04
  17  norm          .10000E-03    19.225       -.12326E-05** at limit **
  18  norm          2.9294        2.4756        .24711E-07    .28954E-04
  19  Prefactor     9.0047        95.684       -.13802E-05   -.24495E-04
  20  Prefactor     .10000E-03    13.361       -.55247E-06** at limit **
  21  Prefactor     3.5345        64.765        .14767E-05    .18571E-03
  22  Prefactor     .10000E-03    1.8261        .28117E-06** at limit **
  23  Prefactor     .10000E-03    21.345        .86115E-06** at limit **
  24  Prefactor     6.3770        15.939        .51136E-06    .54858E-04
  25  norm          1.6299        2.3473        .45521E-07    .27571E-03
  26  Prefactor     80.178        62.158       -.12563E-05   -.15258E-03
  27  Normalizat    1.5521        .22110       -.90080E-06   -.22136E-03
  28  Prefactor     .75153        .11727       -.82590E-08   -.42706E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.234
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.20687
  Prefactor  = 0.0001
  Prefactor  = 4.18221
  norm       = 0.000100021
  Prefactor  = 0.000100034
  Prefactor  = 0.0001
  Prefactor  = 4.50659
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 1.118
  norm       = 2.62484
  norm       = 2.02436
  norm       = 0.000100001
  norm       = 2.92941
  Prefactor  = 9.0047
  Prefactor  = 0.0001
  Prefactor  = 3.53449
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 6.37696
  norm       = 1.62995
  Prefactor  = 80.1778
  Normalizat = 1.55209
  Prefactor  = 0.751526
 **********
 **   18 **HESSE 
 **********

 FCN=   8256.558     FROM HESSE     STATUS=OK           535 CALLS     4606 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.234        17.711        .10259E-03   -1.4927    
   2  norm          .10000E-03    6.5604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.0850        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.2444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          8.2069        6.0759        .13995E-03   -1.5135    
   6  Prefactor     .10000E-03    20.568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.1822        45.357        .19752E-03   -1.5299    
   8  norm          .10002E-03    17.543        .95229E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10003E-03    21.003        .13422       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    11.973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.5066        23.590        .18983E-03   -1.5283    
  12  Prefactor     .10000E-03    58.637        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    17.286        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.1180        .23290        .19011E-04   -1.5496    
  15  norm          2.6248        1.8989        .10002E-03   -1.5384    
  16  norm          2.0244        3.0844        .19337E-03   -1.5423    
  17  norm          .10000E-03    19.338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.9294        2.4754        .12615E-03   -1.5366    
  19  Prefactor     9.0047        96.134        .13358E-03   -1.5108    
  20  Prefactor     .10000E-03    13.387        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.5345        77.119        .10766E-02   -1.5332    
  22  Prefactor     .10000E-03    8.0229        .23494E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    21.444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     6.3770        15.981        .15890E-03   -1.5203    
  25  norm          1.6299        2.3258        .16232E-03   -1.5453    
  26  Prefactor     80.178        62.424        .44854E-04   -1.3915    
  27  Normalizat    1.5521        .27021        .29239E-03   -.76325    
  28  Prefactor     .75153        .14192        .21850E-03   -1.0154    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.04528e-09
Minuit parameter uncertainties:
  1  17.717
  2  4.19201e-06
  3  6.95806e-06
  4  3.13966e-06
  5  6.07639
  6  0.000159596
  7  27.5721
  8  0.00121915
  9  0.00170202
  10  5.78009e-05
  11  20.6338
  12  0.000205034
  13  0.000278367
  14  0.232903
  15  1.89897
  16  3.08465
  17  0.000275086
  18  2.47552
  19  58.9652
  20  9.21578e-05
  21  33.0679
  22  9.51841e-05
  23  0.000240501
  24  15.9921
  25  2.32598
  26  62.4754
  27  0.270467
  28  0.141993
Done.

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

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  1.118e+00  2.329e-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.515e-01  1.420e-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.552e+00  2.705e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 72.28
Ra Dec: 226.103 10.498
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 2.72e-07 +/- 5.67e-08
Energy Flux (Fixed Index): 1.10e-04 +/- 2.30e-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) = 8256.44824213
delta logL = 0.109948852787

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8256.43042499
delta logL = 0.127765988371

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1172       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2335       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5233       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76163       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=   8256.430     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      201 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1172        .28316        .42045E-02    .60631E-03
   2  alpha         2.2335        .26097        .16831        .40393E-04
   3  Normalizat    1.5233        .21555        .66560E-01    .94803E-05
   4  Prefactor     .76163        .11592        .43216E-01    .14430E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.11717
  alpha      = 2.23353
  Normalizat = 1.5233
  Prefactor  = 0.761628
 **********
 **   18 **HESSE 
 **********

 FCN=   8256.430     FROM HESSE     STATUS=OK            33 CALLS      234 TOTAL
                     EDM=   .72E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1172        .22853        .18597E-04   -1.5497    
   2  alpha         2.2335        .21667        .72497E-02   -.10679    
   3  Normalizat    1.5233        .26437        .29443E-03   -.77126    
   4  Prefactor     .76163        .14119        .21714E-03   -1.0116    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.16282e-12
Minuit parameter uncertainties:
  1  0.22853
  2  0.216943
  3  0.264615
  4  0.141259
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/5912': 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) = 8256.43042499
delta logL = 0.127765991936

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  1.117e+00  2.285e-01  1.000e-04  1.000e+04 ( 1.000e-10)
201        alpha:  2.234e+00  2.169e-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:  7.616e-01  1.413e-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.523e+00  2.646e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 72.37
Ra Dec: 226.103 10.498
Photon Index (Free Index): 2.23 +/- 0.22
Photon Flux (Free Index): 2.95e-07 +/- 7.48e-08
Energy Flux (Free Index): 1.05e-04 +/- 2.34e-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/5912/cmap_HighResolution_557884801_558144001_4FGL_J1504.4+1029_daily_bin1229.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.72e-07', energy_flux2='1.05e-04', photon_flux_error='5.67e-08', dlogl='1.28e-01', energy_flux='1.10e-04', photon_flux2='2.95e-07', job_status='DONE', time_completed='2021-09-10 21:54:33.305674', photon_index_error2='0.22', photon_index2='2.23', ts='72.28', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', energy_flux_error2='2.34e-05', EG='1.55', time_epoch_completed='1631336073.31', return_code='0', job_id='5912', GAL2='0.76', EG2='1.52', return_code2='0', energy_flux_error='2.30e-05', photon_flux_error2='7.48e-08', ts2='72.37', photon_index='2.12' WHERE bin_id='1229' AND source_name='4FGL J1504.4+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 21:54:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 5912: <4FGL_J1504.4+1029_daily_bin1229> in cluster <slac> Done

Job <4FGL_J1504.4+1029_daily_bin1229> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 10 21:41:12 2021
Job was executed on host(s) <bullet0280>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 21:41:15 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:41:15 2021
Terminated at Fri Sep 10 21:54:34 2021
Results reported at Fri Sep 10 21:54:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_daily_bin1229 226.103 10.4978 557884801 558144001 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 :                                   753.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             357.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   798 sec.
    Turnaround time :                            802 sec.

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

