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


Performing analysis on: 4FGL_J1504.4+1029_daily_bin1412
RA = 226.103, Dec = 10.4978
tmin = 605318401, tmax = 605577601
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='7922', job_status='RUN', time_executed='2021-09-10 21:50:24.883966', time_epoch_executed='1631335824.88' WHERE source_name='4FGL J1504.4+1029' and cadence='daily' and bin_id='1412'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/7922

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/7922/ft1_4FGL_J1504.4+1029_daily_bin1412.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/7922/ft2_4FGL_J1504.4+1029_daily_bin1412.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/7922/ft1_4FGL_J1504.4+1029_daily_bin1412.fits outfile=/scratch/kocevski/7922/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin1412.fits ra=226.103 dec=10.4978 rad=12.0 tmin=605318401.0 tmax=605577601.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.51
user 5.26
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/7922/ft1_filtered_4FGL_J1504.4+1029_daily_bin1412.fits" evtable="EVENTS" scfile=/scratch/kocevski/7922/ft2_4FGL_J1504.4+1029_daily_bin1412.fits sctable="SC_DATA" outfile=/scratch/kocevski/7922/ltcube_605318401_605577601_4FGL_J1504.4+1029_daily_bin1412.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/7922/ft2_4FGL_J1504.4+1029_daily_bin1412.fits
.....................!
real 11.65
user 11.21
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/7922/ft1_filtered_4FGL_J1504.4+1029_daily_bin1412.fits evtable="EVENTS" scfile=/scratch/kocevski/7922/ft2_4FGL_J1504.4+1029_daily_bin1412.fits sctable="SC_DATA" expcube=/scratch/kocevski/7922/ltcube_605318401_605577601_4FGL_J1504.4+1029_daily_bin1412.fits outfile=/scratch/kocevski/7922/expmap_605318401_605577601_4FGL_J1504.4+1029_daily_bin1412.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/7922/ltcube_605318401_605577601_4FGL_J1504.4+1029_daily_bin1412.fits
.....................!
real 191.39
user 186.80
sys 4.28

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/7922/ft1_filtered_4FGL_J1504.4+1029_daily_bin1412.fits scfile=/scratch/kocevski/7922/ft2_4FGL_J1504.4+1029_daily_bin1412.fits outfile=/scratch/kocevski/7922/cmap_605318401_605577601_4FGL_J1504.4+1029_daily_bin1412.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.52
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/7922/ft1_filtered_4FGL_J1504.4+1029_daily_bin1412.fits scfile=/scratch/kocevski/7922/ft2_4FGL_J1504.4+1029_daily_bin1412.fits outfile=/scratch/kocevski/7922/cmap_HighResolution_605318401_605577601_4FGL_J1504.4+1029_daily_bin1412.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.53
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .58102E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    .10794E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.416       1.0000         .10000E-03   10000.    
     5 'norm      '    1.8941       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10218E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    23.510       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10150E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    21.940       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10308E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.1961       1.0000         .10000E-03   10000.    
    15 'norm      '    2.4243       1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.1967       1.0000         .10000E-03   10000.    
    19 'Prefactor '    37.950       1.0000         .10000E-03   10000.    
    20 'Prefactor '    35.231       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .29564E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.0296       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10181E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.2573       1.0000         .10000E-03   10000.    
    25 'norm      '    8.7960       1.0000         .10000E-03   10000.    
    26 'Prefactor '    150.24       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1947       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .90544       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=   7461.194     FROM MIGRAD    STATUS=CONVERGED    701 CALLS     3477 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 17.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10041E-03    998.23       -.15177E-03** at limit **
   2  norm          .10000E-03    26.174       -.10598E-05** at limit **
   3  Prefactor     .10000E-03    7.8049        .49139E-06** at limit **
   4  Prefactor     10.417        7.9070        .23018E-06    .14493E-03
   5  norm          1.8953        3.8616       -.22464E-05    .11919E-03
   6  Prefactor     .10000E-03    35.488        .12415E-05** at limit **
   7  Prefactor     .10000E-03    17.468       -.30237E-06** at limit **
   8  norm          .10000E-03    10.395        .28744E-06** at limit **
   9  Prefactor     23.500        33.798        .12575E-06   -.88195E-04
  10  Prefactor     .10000E-03    9.5351        .30276E-06** at limit **
  11  Prefactor     21.942        18.438        .31937E-06    .59286E-04
  12  Prefactor     .10000E-03    12.543       -.51750E-06** at limit **
  13  Prefactor     .10000E-03    18.347        .45274E-06** at limit **
  14  norm          1.1963        .26284       -.15616E-08   -.57868E-03
  15  norm          2.4248        2.2929       -.17426E-06    .17607E-03
  16  norm          .10000E-03    2.0522        .41882E-07** at limit **
  17  norm          .10000E-03    20.950        .81994E-06** at limit **
  18  norm          5.1942        4.0167        .44648E-07    .16107E-03
  19  Prefactor     37.976        55.799        .14861E-05    .74139E-04
  20  Prefactor     35.221        40.391       -.79111E-06   -.13738E-03
  21  Prefactor     .10000E-03    62.141       -.29166E-06** at limit **
  22  Prefactor     7.0287        6.5147       -.97197E-07    .19105E-03
  23  Prefactor     .10000E-03    28.935        .34413E-06** at limit **
  24  Prefactor     4.2490        43.887       -.50327E-05   -.13995E-03
  25  norm          8.7969        3.7434        .27776E-07    .44002E-05
  26  Prefactor     150.20        129.73        .25890E-05    .92374E-04
  27  Normalizat    1.1944        .23638        .19030E-06    .25759E-04
  28  Prefactor     .90580        .12822       -.16252E-05   -.97442E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010041
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.4169
  norm       = 1.89529
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 23.5004
  Prefactor  = 0.0001
  Prefactor  = 21.9417
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.19628
  norm       = 2.42475
  norm       = 0.0001
  norm       = 0.0001
  norm       = 5.19418
  Prefactor  = 37.9764
  Prefactor  = 35.2206
  Prefactor  = 0.0001
  Prefactor  = 7.02869
  Prefactor  = 0.0001
  Prefactor  = 4.24898
  norm       = 8.79685
  Prefactor  = 150.204
  Normalizat = 1.19435
  Prefactor  = 0.9058
 **********
 **   18 **HESSE 
 **********

 FCN=   7461.194     FROM HESSE     STATUS=OK           523 CALLS     4000 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10041E-03    45.087        .14855       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    26.251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.0610        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.417        7.9061        .12415E-03   -1.5062    
   5  norm          1.8953        3.8465        .23189E-03   -1.5433    
   6  Prefactor     .10000E-03    35.550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    17.507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    10.450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     23.500        33.938        .82611E-04   -1.4738    
  10  Prefactor     .10000E-03    9.5537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     21.942        18.476        .85513E-04   -1.4771    
  12  Prefactor     .10000E-03    12.545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    18.363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.1963        .26349        .19656E-04   -1.5489    
  15  norm          2.4248        2.2786        .11934E-03   -1.5397    
  16  norm          .10000E-03    2.0538        .12085E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    20.967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.1942        4.0148        .14536E-03   -1.5252    
  19  Prefactor     37.976        56.025        .65060E-04   -1.4475    
  20  Prefactor     35.221        40.430        .67516E-04   -1.4520    
  21  Prefactor     .10000E-03    62.996        .21396E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     7.0287        6.5086        .15131E-03   -1.5178    
  23  Prefactor     .10000E-03    29.060        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     4.2490        44.089        .19528E-03   -1.5296    
  25  norm          8.7969        3.7440        .10591E-03   -1.5115    
  26  Prefactor     150.20        130.13        .16441E-03   -1.3251    
  27  Normalizat    1.1944        .28279        .32646E-03   -.86778    
  28  Prefactor     .90580        .15382        .21182E-03   -.95939    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.5428e-09
Minuit parameter uncertainties:
  1  0.00860099
  2  0.000222187
  3  5.6741e-05
  4  7.90693
  5  3.84697
  6  0.000338158
  7  5.31985e-05
  8  4.62569e-05
  9  33.9663
  10  4.93275e-05
  11  18.4803
  12  8.03547e-05
  13  0.000119139
  14  0.263487
  15  2.27864
  16  3.37141e-06
  17  0.000163058
  18  4.01496
  19  56.1027
  20  40.4616
  21  0.000243395
  22  6.50922
  23  2.27778e-05
  24  27.3996
  25  3.74413
  26  130.381
  27  0.283154
  28  0.153896
Done.

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

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  1.196e+00  2.635e-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:  9.058e-01  1.539e-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.194e+00  2.832e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 62.68
Ra Dec: 226.103 10.498
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 2.91e-07 +/- 6.41e-08
Energy Flux (Fixed Index): 1.18e-04 +/- 2.60e-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) = 7461.00939287
delta logL = 0.184953662682

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7460.98755158
delta logL = 0.206794950724

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1921       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2807       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1512       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92139       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=   7460.988     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      205 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1920        .37209        .42904E-02   -.12658E-02
   2  alpha         2.2807        .34289        .17667       -.37430E-05
   3  Normalizat    1.1513        .22467        .74852E-01   -.46261E-05
   4  Prefactor     .92139        .12705        .45277E-01    .18549E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.19205
  alpha      = 2.28068
  Normalizat = 1.15127
  Prefactor  = 0.921392
 **********
 **   18 **HESSE 
 **********

 FCN=   7460.988     FROM HESSE     STATUS=OK            33 CALLS      238 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1920        .25630        .18986E-04   -1.5490    
   2  alpha         2.2807        .24482        .75653E-02   -.87841E-01
   3  Normalizat    1.1513        .26821        .33127E-03   -.88122    
   4  Prefactor     .92139        .15077        .21013E-03   -.95398    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42133e-11
Minuit parameter uncertainties:
  1  0.256305
  2  0.245213
  3  0.268525
  4  0.150834
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/7922': 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) = 7460.98755154
delta logL = 0.206794987478

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  1.192e+00  2.563e-01  1.000e-04  1.000e+04 ( 1.000e-10)
201        alpha:  2.281e+00  2.452e-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:  9.214e-01  1.508e-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.151e+00  2.685e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 62.78
Ra Dec: 226.103 10.498
Photon Index (Free Index): 2.28 +/- 0.25
Photon Flux (Free Index): 3.27e-07 +/- 8.81e-08
Energy Flux (Free Index): 1.11e-04 +/- 2.56e-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/7922/cmap_HighResolution_605318401_605577601_4FGL_J1504.4+1029_daily_bin1412.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.91e-07', energy_flux2='1.11e-04', photon_flux_error='6.41e-08', dlogl='2.07e-01', energy_flux='1.18e-04', photon_flux2='3.27e-07', job_status='DONE', time_completed='2021-09-10 22:01:48.515746', photon_index_error2='0.25', photon_index2='2.28', ts='62.68', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='2.56e-05', EG='1.19', time_epoch_completed='1631336508.52', return_code='0', job_id='7922', GAL2='0.92', EG2='1.15', return_code2='0', energy_flux_error='2.60e-05', photon_flux_error2='8.81e-08', ts2='62.78', photon_index='2.12' WHERE bin_id='1412' AND source_name='4FGL J1504.4+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 22:01:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0171>
Subject: Job 7922: <4FGL_J1504.4+1029_daily_bin1412> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_daily_bin1412 226.103 10.4978 605318401 605577601 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 :                                   665.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             280.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   928 sec.
    Turnaround time :                            930 sec.

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

