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


Performing analysis on: 4FGL_J1504.4+1029_daily_bin675
RA = 226.103, Dec = 10.4978
tmin = 414288001, tmax = 414547201
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='2056', job_status='RUN', time_executed='2021-09-10 21:31:11.704849', time_epoch_executed='1631334671.7' WHERE source_name='4FGL J1504.4+1029' and cadence='daily' and bin_id='675'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/2056

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/2056/ft1_4FGL_J1504.4+1029_daily_bin675.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/2056/ft2_4FGL_J1504.4+1029_daily_bin675.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/2056/ft1_4FGL_J1504.4+1029_daily_bin675.fits outfile=/scratch/kocevski/2056/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin675.fits ra=226.103 dec=10.4978 rad=12.0 tmin=414288001.0 tmax=414547201.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 5.53
user 5.27
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/2056/ft2_4FGL_J1504.4+1029_daily_bin675.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/2056/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin675.fits evtable="EVENTS" outfile="/scratch/kocevski/2056/ft1_filtered_4FGL_J1504.4+1029_daily_bin675.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/2056/ft1_filtered_4FGL_J1504.4+1029_daily_bin675.fits evtable="EVENTS" scfile=/scratch/kocevski/2056/ft2_4FGL_J1504.4+1029_daily_bin675.fits sctable="SC_DATA" expcube=/scratch/kocevski/2056/ltcube_414288001_414547201_4FGL_J1504.4+1029_daily_bin675.fits outfile=/scratch/kocevski/2056/expmap_414288001_414547201_4FGL_J1504.4+1029_daily_bin675.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/2056/ltcube_414288001_414547201_4FGL_J1504.4+1029_daily_bin675.fits
.....................!
real 190.26
user 185.49
sys 4.39

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/2056/ft1_filtered_4FGL_J1504.4+1029_daily_bin675.fits scfile=/scratch/kocevski/2056/ft2_4FGL_J1504.4+1029_daily_bin675.fits outfile=/scratch/kocevski/2056/cmap_414288001_414547201_4FGL_J1504.4+1029_daily_bin675.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/2056/ft1_filtered_4FGL_J1504.4+1029_daily_bin675.fits scfile=/scratch/kocevski/2056/ft2_4FGL_J1504.4+1029_daily_bin675.fits outfile=/scratch/kocevski/2056/cmap_HighResolution_414288001_414547201_4FGL_J1504.4+1029_daily_bin675.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.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.2903       1.0000         .10000E-03   10000.    
     5 'norm      '    .11304       1.0000         .10000E-03   10000.    
     6 'Prefactor '    48.082       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.008       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.4198       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10205E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.1646       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.1023       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      '    .17029E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .20764E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    66.312       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    17.733       1.0000         .10000E-03   10000.    
    25 'norm      '    1.1850       1.0000         .10000E-03   10000.    
    26 'Prefactor '    130.13       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0100       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1192       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=   9740.152     FROM MIGRAD    STATUS=CONVERGED    694 CALLS     3562 TOTAL
                     EDM=   .81E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.713       -.81521E-05** at limit **
   2  norm          .10000E-03    10.957        .38083E-05** at limit **
   3  Prefactor     .10000E-03    4.3193       -.12251E-06** at limit **
   4  Prefactor     2.2932        7.1553       -.14902E-05   -.37349E-03
   5  norm          .11269        2.2958       -.85982E-06   -.12019E-03
   6  Prefactor     48.047        56.371       -.33940E-04    .23323E-05
   7  Prefactor     .10000E-03    6.8824        .49655E-06** at limit **
   8  norm          .10000E-03    4.9674       -.95591E-07** at limit **
   9  Prefactor     15.012        20.278       -.19738E-05    .11895E-03
  10  Prefactor     1.4014        65.116        .18747E-04   -.10491E-03
  11  Prefactor     .10000E-03    29.151       -.21304E-04** at limit **
  12  Prefactor     8.1645        21.533       -.19942E-05    .56576E-04
  13  Prefactor     .10000E-03    33.542        .20665E-04** at limit **
  14  norm          .10000E-03    .35624E-01   -.38209E-07** at limit **
  15  norm          3.1028        2.3495       -.22435E-06   -.73127E-03
  16  norm          .10000E-03    1.3147       -.20241E-07** at limit **
  17  norm          .10000E-03    17.174        .25457E-05** at limit **
  18  norm          .10000E-03    1.5928       -.12849E-06** at limit **
  19  Prefactor     .10086E-03    19.460       -.29415E-05** at limit **
  20  Prefactor     66.312        41.695       -.11502E-05    .18786E-04
  21  Prefactor     .10000E-03    14.549        .10143E-05** at limit **
  22  Prefactor     .10000E-03    1.6238       -.22915E-07** at limit **
  23  Prefactor     .10000E-03    15.433        .41306E-05** at limit **
  24  Prefactor     17.728        22.369        .32683E-06   -.10686E-04
  25  norm          1.1849        1.2989       -.11518E-07    .10212E-03
  26  Prefactor     130.13        73.950        .36532E-05    .28536E-05
  27  Normalizat    1.0096        .19758        .22008E-05    .20822E-03
  28  Prefactor     1.1194        .11233        .12643E-06    .49360E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.29317
  norm       = 0.112695
  Prefactor  = 48.0475
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 15.012
  Prefactor  = 1.40141
  Prefactor  = 0.0001
  Prefactor  = 8.16452
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.1028
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.000100862
  Prefactor  = 66.3118
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.7281
  norm       = 1.18493
  Prefactor  = 130.133
  Normalizat = 1.00958
  Prefactor  = 1.11942
 **********
 **   18 **HESSE 
 **********

 FCN=   9740.152     FROM HESSE     STATUS=OK           519 CALLS     4081 TOTAL
                     EDM=   .96E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    10.983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.3378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.2932        7.1391        .27124E-03   -1.5405    
   5  norm          .11269        13.890        .28640E-02   -1.5641    
   6  Prefactor     48.047        56.616        .57828E-04   -1.4321    
   7  Prefactor     .10000E-03    6.8848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    4.9786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     15.012        20.204        .10339E-03   -1.4933    
  10  Prefactor     1.4014        64.596        .36310E-03   -1.5471    
  11  Prefactor     .10000E-03    29.795        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.1645        21.493        .14031E-03   -1.5136    
  13  Prefactor     .10000E-03    33.638        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .55026E-01    .36097E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.1028        2.2802        .11880E-03   -1.5356    
  16  norm          .10000E-03    1.3154        .11051E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    17.178        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    7.2601        .23264E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10086E-03    168.41        .83998E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     66.312        41.611        .49286E-04   -1.4078    
  21  Prefactor     .10000E-03    14.604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    1.6450        .12277E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    15.445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     17.728        22.397        .95109E-04   -1.4866    
  25  norm          1.1849        1.2990        .11476E-03   -1.5490    
  26  Prefactor     130.13        73.895        .35296E-04   -1.3421    
  27  Normalizat    1.0096        .23193        .33273E-03   -.92710    
  28  Prefactor     1.1194        .13327        .18809E-03   -.88848    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.58194e-08
Minuit parameter uncertainties:
  1  1.29079e-05
  2  1.60207e-05
  3  3.60482e-06
  4  7.1417
  5  2.50176
  6  56.6791
  7  7.12329e-06
  8  2.08154e-06
  9  20.2135
  10  19.0501
  11  0.000233763
  12  21.5135
  13  1.10169e-05
  14  1.34687e-06
  15  2.2803
  16  1.14039e-06
  17  2.49404e-06
  18  0.000133536
  19  0.0241608
  20  41.629
  21  3.07836e-05
  22  3.91025e-06
  23  1.61504e-05
  24  22.4075
  25  1.29898
  26  73.9472
  27  0.232158
  28  0.133314
Done.

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

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  1.000e-04  1.347e-06  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.119e+00  1.333e-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.010e+00  2.322e-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: 4.57e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.85e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/2056/likelihoodResults_414288001_414547201_4FGL_J1504.4+1029_daily_bin675.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): 0
logL (Free Index) = 9740.15276942
delta logL = -0.000403331703637

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9740.15236901
delta logL = -2.92269396596e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1223       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0096       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1193       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=   9740.152     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      215 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .76177        .90712E-02** at limit **
   2  alpha         2.0919        2.8227        .41761       -.27673E-05
   3  Normalizat    1.0096        .22150E-01    .75192E-01    .36189E-04
   4  Prefactor     1.1194        .13160E-01    .36894E-01    .12540E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.09188
  Normalizat = 1.00958
  Prefactor  = 1.11942
 **********
 **   18 **HESSE 
 **********

 FCN=   9740.152     FROM HESSE     STATUS=OK            31 CALLS      246 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .60387E-01    .36106E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0919        3.7173        .16704       -.16398    
   3  Normalizat    1.0096        .21919        .33272E-03   -.92710    
   4  Prefactor     1.1194        .13063        .18809E-03   -.88848    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.98141e-10
Minuit parameter uncertainties:
  1  1.40578e-06
  2  25.1727
  3  0.219387
  4  0.130663
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/2056': 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) = 9740.15236525
delta logL = 8.44000169309e-07

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  1.000e-04  1.406e-06  1.000e-04  1.000e+04 ( 1.000e-10)
201        alpha:  2.092e+00  2.517e+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.119e+00  1.307e-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.010e+00  2.194e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/2056/cmap_HighResolution_414288001_414547201_4FGL_J1504.4+1029_daily_bin675.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.85e-05', job_status='DONE', photon_flux_upper_limit='4.57e-08', time_completed='2021-09-10 21:46:20.626225', job_id='2056', GAL2='1.12', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1631335580.63', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='8.44e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='675' AND source_name='4FGL J1504.4+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 21:46:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 2056: <4FGL_J1504.4+1029_daily_bin675> in cluster <slac> Done

Job <4FGL_J1504.4+1029_daily_bin675> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 10 21:31:01 2021
Job was executed on host(s) <bullet0030>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 21:31:02 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:31:02 2021
Terminated at Fri Sep 10 21:46:21 2021
Results reported at Fri Sep 10 21:46:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_daily_bin675 226.103 10.4978 414288001 414547201 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 :                                   904.15 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             323.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   918 sec.
    Turnaround time :                            920 sec.

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

