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


Performing analysis on: 4FGL_J1504.4+1029_daily_bin615
RA = 226.103, Dec = 10.4978
tmin = 398736001, tmax = 398995201
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='342', job_status='RUN', time_executed='2021-09-10 21:26:32.336112', time_epoch_executed='1631334392.34' WHERE source_name='4FGL J1504.4+1029' and cadence='daily' and bin_id='615'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/342

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/342/ft1_4FGL_J1504.4+1029_daily_bin615.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/342/ft2_4FGL_J1504.4+1029_daily_bin615.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/342/ft1_4FGL_J1504.4+1029_daily_bin615.fits outfile=/scratch/kocevski/342/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin615.fits ra=226.103 dec=10.4978 rad=12.0 tmin=398736001.0 tmax=398995201.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 6.10
user 5.83
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/342/ft1_filtered_4FGL_J1504.4+1029_daily_bin615.fits evtable="EVENTS" scfile=/scratch/kocevski/342/ft2_4FGL_J1504.4+1029_daily_bin615.fits sctable="SC_DATA" expcube=/scratch/kocevski/342/ltcube_398736001_398995201_4FGL_J1504.4+1029_daily_bin615.fits outfile=/scratch/kocevski/342/expmap_398736001_398995201_4FGL_J1504.4+1029_daily_bin615.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/342/ltcube_398736001_398995201_4FGL_J1504.4+1029_daily_bin615.fits
.....................!
real 195.11
user 190.03
sys 4.70

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/342/ft1_filtered_4FGL_J1504.4+1029_daily_bin615.fits scfile=/scratch/kocevski/342/ft2_4FGL_J1504.4+1029_daily_bin615.fits outfile=/scratch/kocevski/342/cmap_398736001_398995201_4FGL_J1504.4+1029_daily_bin615.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/342/ft1_filtered_4FGL_J1504.4+1029_daily_bin615.fits scfile=/scratch/kocevski/342/ft2_4FGL_J1504.4+1029_daily_bin615.fits outfile=/scratch/kocevski/342/cmap_HighResolution_398736001_398995201_4FGL_J1504.4+1029_daily_bin615.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/342/ft1_filtered_4FGL_J1504.4+1029_daily_bin615.fits evtable="EVENTS" scfile=/scratch/kocevski/342/ft2_4FGL_J1504.4+1029_daily_bin615.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/342/Model_4FGL_J1504.4+1029_daily_bin615.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/342/ft1_filtered_4FGL_J1504.4+1029_daily_bin615.fits.....................!
real 44.25
user 42.91
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    38.918       1.0000         .10000E-03   10000.    
     2 'norm      '    .10094E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    21.878       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10145E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10270E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    26.372       1.0000         .10000E-03   10000.    
    14 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.8206       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .25968E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.2430       1.0000         .10000E-03   10000.    
    19 'Prefactor '    33.569       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    15.742       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.5050       1.0000         .10000E-03   10000.    
    24 'Prefactor '    38.784       1.0000         .10000E-03   10000.    
    25 'norm      '    7.5027       1.0000         .10000E-03   10000.    
    26 'Prefactor '    140.73       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0513       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .87508       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=   5086.095     FROM MIGRAD    STATUS=CONVERGED    660 CALLS     3414 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     38.916        46.587       -.40512E-05    .22467E-04
   2  norm          .10000E-03    12.148       -.84454E-06** at limit **
   3  Prefactor     .10000E-03    2.5684       -.56446E-07** at limit **
   4  Prefactor     .10000E-03    3.3458       -.58372E-07** at limit **
   5  norm          .10000E-03    2.3253        .43842E-07** at limit **
   6  Prefactor     .10000E-03    56.235        .13642E-05** at limit **
   7  Prefactor     .10000E-03    14.711       -.95612E-06** at limit **
   8  norm          .10000E-03    7.3738       -.28756E-06** at limit **
   9  Prefactor     .10000E-03    12.378        .21201E-05** at limit **
  10  Prefactor     21.894        29.407        .15406E-04    .42082E-04
  11  Prefactor     .10001E-03    14.568        .15644E-05** at limit **
  12  Prefactor     .10001E-03    25.271       -.83010E-05** at limit **
  13  Prefactor     26.300        71.384       -.12248E-03    .48545E-04
  14  norm          .10000E-03    .97275E-01   -.85370E-08** at limit **
  15  norm          1.8220        3.3334       -.38027E-05   -.10590E-02
  16  norm          .10000E-03    2.7371        .10136E-06** at limit **
  17  norm          .10004E-03    124.11       -.31500E-04** at limit **
  18  norm          5.2421        4.6019        .38918E-05    .88068E-04
  19  Prefactor     33.572        52.972        .45185E-05    .18872E-04
  20  Prefactor     .10000E-03    28.185        .11956E-04** at limit **
  21  Prefactor     15.754        40.805        .20216E-04    .28192E-04
  22  Prefactor     .10000E-03    1.8307       -.50640E-07** at limit **
  23  Prefactor     7.5026        29.165       -.54523E-05   -.15330E-04
  24  Prefactor     38.783        25.751       -.85770E-06    .51580E-05
  25  norm          7.5024        3.2447       -.10817E-05    .40088E-04
  26  Prefactor     140.73        86.089        .26834E-05    .52807E-05
  27  Normalizat    1.0505        .25455        .70708E-05   -.51162E-04
  28  Prefactor     .87552        .13597       -.25826E-06    .33745E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 38.9156
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.8944
  Prefactor  = 0.000100007
  Prefactor  = 0.000100013
  Prefactor  = 26.2998
  norm       = 0.0001
  norm       = 1.82202
  norm       = 0.0001
  norm       = 0.000100043
  norm       = 5.24211
  Prefactor  = 33.5724
  Prefactor  = 0.0001
  Prefactor  = 15.7538
  Prefactor  = 0.0001
  Prefactor  = 7.50262
  Prefactor  = 38.7828
  norm       = 7.50245
  Prefactor  = 140.733
  Normalizat = 1.0505
  Prefactor  = 0.87552
 **********
 **   18 **HESSE 
 **********

 FCN=   5086.095     FROM HESSE     STATUS=OK           515 CALLS     3929 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     38.916        47.005        .64249E-04   -1.4460    
   2  norm          .10000E-03    12.150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.5698        .11162E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.3540        .12739E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.3424        .10619E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    56.273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    14.721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    7.3790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     21.894        29.404        .85635E-04   -1.4772    
  11  Prefactor     .10001E-03    14.622        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    25.231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     26.300        71.438        .78009E-04   -1.4682    
  14  norm          .10000E-03    .15358        .42835E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.8220        3.3124        .15891E-03   -1.5438    
  16  norm          .10000E-03    2.7390        .11523E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10004E-03    124.40        .21450E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.2421        4.5857        .13454E-03   -1.5250    
  19  Prefactor     33.572        52.994        .69162E-04   -1.4548    
  20  Prefactor     .10000E-03    28.218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     15.754        40.921        .10095E-03   -1.4914    
  22  Prefactor     .10000E-03    1.8377        .94229E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     7.5026        29.172        .14639E-03   -1.5160    
  24  Prefactor     38.783        25.758        .64360E-04   -1.4462    
  25  norm          7.5024        3.2458        .82239E-04   -1.5160    
  26  Prefactor     140.73        86.093        .16979E-03   -1.3330    
  27  Normalizat    1.0505        .30747        .31025E-03   -.91357    
  28  Prefactor     .87552        .16468        .19070E-03   -.97002    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.58151e-09
Minuit parameter uncertainties:
  1  47.0497
  2  1.57896e-06
  3  2.53269e-06
  4  3.40963e-06
  5  1.79447e-07
  6  9.31709e-05
  7  3.71227e-05
  8  2.19662e-05
  9  0.000106061
  10  29.4236
  11  0.000619128
  12  0.00113151
  13  71.6719
  14  7.82554e-07
  15  3.31277
  16  4.35674e-06
  17  0.00466118
  18  4.58598
  19  53.0685
  20  7.58796e-05
  21  40.9938
  22  6.96223e-06
  23  29.2272
  24  25.7656
  25  3.24592
  26  86.17
  27  0.30799
  28  0.164774
Done.

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

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  1.000e-04  7.826e-07  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.755e-01  1.648e-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.050e+00  3.080e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 226.103 10.498
Photon Flux Upper Limit: 9.33e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.78e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/342/likelihoodResults_398736001_398995201_4FGL_J1504.4+1029_daily_bin615.txt

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): 102
logL (Free Index) = 5086.09589207
delta logL = -0.00106840983062

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5086.09450599
delta logL = 0.000317677302519

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6784       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0505       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87552       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=   5085.702     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      331 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .11688E-01    .72835        .20719E-02    .72567E-02
   2  alpha         5.0000        3.2542        .41285    ** at limit **
   3  Normalizat    .96415        .15319        .72828E-01    .75011E-04
   4  Prefactor     .90543        .62636E-01    .44692E-01    .14655E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0116877
  alpha      = 5
  Normalizat = 0.964151
  Prefactor  = 0.905429
 **********
 **   18 **HESSE 
 **********

 FCN=   5085.702     FROM HESSE     STATUS=OK            33 CALLS      364 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .11688E-01    .15427E-01    .94695E-04   -1.5686    
   2  alpha         5.0000        4.1009        .99212E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .96415        .30025        .32230E-03   -.94241    
   4  Prefactor     .90543        .16568        .18781E-03   -.95952    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.66055e-09
Minuit parameter uncertainties:
  1  0.0154269
  2  6.13185e-05
  3  0.300777
  4  0.165775
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/342': 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) = 5085.70157121
delta logL = 0.393252456293

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  1.169e-02  1.543e-02  1.000e-04  1.000e+04 ( 1.000e-10)
201        alpha:  5.000e+00  6.132e-05  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.054e-01  1.658e-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:  9.642e-01  3.008e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 226.103 10.498

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/342/cmap_HighResolution_398736001_398995201_4FGL_J1504.4+1029_daily_bin615.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.78e-05', job_status='DONE', photon_flux_upper_limit='9.33e-08', time_completed='2021-09-10 21:36:57.457161', job_id='342', GAL2='0.91', fit_tolerance='1e-08', EG2='0.96', EG='1.05', time_epoch_completed='1631335017.46', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='3.93e-01', ts2='0.86', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='615' AND source_name='4FGL J1504.4+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 21:36:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0211>
Subject: Job 342: <4FGL_J1504.4+1029_daily_bin615> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_daily_bin615 226.103 10.4978 398736001 398995201 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 :                                   618.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             293.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   641 sec.
    Turnaround time :                            643 sec.

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

