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


Performing analysis on: 4FGL_J1504.4+1029_daily_bin1475
RA = 226.103, Dec = 10.4978
tmin = 621648001, tmax = 621907201
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='9125', job_status='RUN', time_executed='2021-09-10 21:54:20.780424', time_epoch_executed='1631336060.78' WHERE source_name='4FGL J1504.4+1029' and cadence='daily' and bin_id='1475'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/9125

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/9125/ft1_4FGL_J1504.4+1029_daily_bin1475.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/9125/ft2_4FGL_J1504.4+1029_daily_bin1475.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/9125/ft1_4FGL_J1504.4+1029_daily_bin1475.fits outfile=/scratch/kocevski/9125/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin1475.fits ra=226.103 dec=10.4978 rad=12.0 tmin=621648001.0 tmax=621907201.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.31
user 5.03
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/9125/ft1_filtered_4FGL_J1504.4+1029_daily_bin1475.fits" evtable="EVENTS" scfile=/scratch/kocevski/9125/ft2_4FGL_J1504.4+1029_daily_bin1475.fits sctable="SC_DATA" outfile=/scratch/kocevski/9125/ltcube_621648001_621907201_4FGL_J1504.4+1029_daily_bin1475.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/9125/ft2_4FGL_J1504.4+1029_daily_bin1475.fits
.....................!
real 11.97
user 11.60
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/9125/ft1_filtered_4FGL_J1504.4+1029_daily_bin1475.fits evtable="EVENTS" scfile=/scratch/kocevski/9125/ft2_4FGL_J1504.4+1029_daily_bin1475.fits sctable="SC_DATA" expcube=/scratch/kocevski/9125/ltcube_621648001_621907201_4FGL_J1504.4+1029_daily_bin1475.fits outfile=/scratch/kocevski/9125/expmap_621648001_621907201_4FGL_J1504.4+1029_daily_bin1475.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/9125/ltcube_621648001_621907201_4FGL_J1504.4+1029_daily_bin1475.fits
.....................!
real 191.16
user 185.26
sys 5.51

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/9125/ft1_filtered_4FGL_J1504.4+1029_daily_bin1475.fits scfile=/scratch/kocevski/9125/ft2_4FGL_J1504.4+1029_daily_bin1475.fits outfile=/scratch/kocevski/9125/cmap_621648001_621907201_4FGL_J1504.4+1029_daily_bin1475.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.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/9125/ft1_filtered_4FGL_J1504.4+1029_daily_bin1475.fits scfile=/scratch/kocevski/9125/ft2_4FGL_J1504.4+1029_daily_bin1475.fits outfile=/scratch/kocevski/9125/cmap_HighResolution_621648001_621907201_4FGL_J1504.4+1029_daily_bin1475.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.6511       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.9064       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .36828E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.1693       1.0000         .10000E-03   10000.    
    14 'norm      '    1.0792       1.0000         .10000E-03   10000.    
    15 'norm      '    3.8378       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      '    6.8953       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11727E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    101.98       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.6920       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .70398       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=   6220.836     FROM MIGRAD    STATUS=CONVERGED    708 CALLS     3512 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    41.116       -.20953E-05** at limit **
   2  norm          .10000E-03    12.630       -.38860E-07** at limit **
   3  Prefactor     1.6530        9.8807       -.72880E-05    .42427E-04
   4  Prefactor     .10000E-03    6.8085        .13850E-05** at limit **
   5  norm          3.9066        3.8174       -.27789E-06    .36277E-04
   6  Prefactor     .10000E-03    51.735        .12081E-05** at limit **
   7  Prefactor     .10000E-03    20.254       -.18149E-05** at limit **
   8  norm          .10000E-03    16.116       -.67643E-06** at limit **
   9  Prefactor     .10000E-03    19.277       -.63189E-06** at limit **
  10  Prefactor     .10000E-03    18.213        .11184E-05** at limit **
  11  Prefactor     .10001E-03    308.85       -.86445E-04** at limit **
  12  Prefactor     .10000E-03    28.658        .12297E-05** at limit **
  13  Prefactor     5.1441        59.039       -.12976E-05   -.37391E-04
  14  norm          1.0791        .26877        .22207E-07   -.11484E-02
  15  norm          3.8378        2.4593       -.26482E-07   -.29275E-04
  16  norm          .10000E-03    2.0304       -.13343E-07** at limit **
  17  norm          .10000E-03    18.516        .71876E-06** at limit **
  18  norm          6.8957        4.8887        .25848E-07    .14991E-05
  19  Prefactor     .10001E-03    173.88       -.20542E-04** at limit **
  20  Prefactor     .10000E-03    24.561        .18536E-06** at limit **
  21  Prefactor     101.97        54.280       -.80697E-06    .55748E-04
  22  Prefactor     .10000E-03    1.6607       -.87798E-08** at limit **
  23  Prefactor     .10000E-03    52.865        .25910E-05** at limit **
  24  Prefactor     .10000E-03    82.999        .17817E-05** at limit **
  25  norm          .10000E-03    2.1466        .76582E-07** at limit **
  26  Prefactor     .10000E-03    38.890       -.18090E-05** at limit **
  27  Normalizat    1.6921        .26406       -.42953E-06    .22961E-03
  28  Prefactor     .70388        .14194       -.40686E-06   -.18194E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.65303
  Prefactor  = 0.000100002
  norm       = 3.90663
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.000100001
  Prefactor  = 5.14415
  norm       = 1.07914
  norm       = 3.83784
  norm       = 0.0001
  norm       = 0.0001
  norm       = 6.89572
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 101.968
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.69215
  Prefactor  = 0.70388
 **********
 **   18 **HESSE 
 **********

 FCN=   6220.836     FROM HESSE     STATUS=OK           513 CALLS     4025 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    41.241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    12.631        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.6530        9.9836        .32856E-03   -1.5451    
   4  Prefactor     .10000E-03    7.0384        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.9066        3.8125        .14783E-03   -1.5313    
   6  Prefactor     .10000E-03    51.799        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    20.305        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    16.201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    19.331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    18.282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    22.691        .95994E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    28.823        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.1441        58.843        .17682E-03   -1.5254    
  14  norm          1.0791        .26887        .19551E-04   -1.5500    
  15  norm          3.8378        2.4581        .94591E-04   -1.5316    
  16  norm          .10000E-03    2.0313        .10976E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    18.524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.8957        4.8915        .14051E-03   -1.5183    
  19  Prefactor     .10001E-03    176.47        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    24.595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     101.97        54.627        .39813E-04   -1.3685    
  22  Prefactor     .10000E-03    1.6641        .99260E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    53.139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    84.277        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    2.2276        .22564E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    38.940        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.6921        .32130        .29281E-03   -.72513    
  28  Prefactor     .70388        .17188        .23632E-03   -1.0338    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.4107e-09
Minuit parameter uncertainties:
  1  0.000143227
  2  8.60063e-06
  3  8.12661
  4  0.000236673
  5  3.81274
  6  0.000259569
  7  0.000124213
  8  1.92088e-05
  9  2.7653e-05
  10  0.00013725
  11  0.000686015
  12  0.00028446
  13  34.8392
  14  0.26887
  15  2.45812
  16  1.50914e-07
  17  7.37844e-05
  18  4.89178
  19  0.00245775
  20  3.79326e-05
  21  54.6538
  22  1.90562e-06
  23  0.000393645
  24  0.000258863
  25  2.11749e-06
  26  0.000237986
  27  0.321699
  28  0.17201
Done.

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

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  1.079e+00  2.689e-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.039e-01  1.720e-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.692e+00  3.217e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 54.69
Ra Dec: 226.103 10.498
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 2.63e-07 +/- 6.54e-08
Energy Flux (Fixed Index): 1.06e-04 +/- 2.65e-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) = 6218.15702455
delta logL = 2.67884804528

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6218.15604748
delta logL = 2.67982511728

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .89573       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5875       1.0000          .0000       5.0000    
     3 'Normalizat'    1.7914       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67185       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=   6218.156     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      216 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .89575        .25271        .42873E-02   -.13133E-03
   2  alpha         1.5875        .19841        .14000       -.38744E-04
   3  Normalizat    1.7914        .25614        .64837E-01    .29339E-06
   4  Prefactor     .67186        .14070        .42025E-01    .19602E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.895753
  alpha      = 1.58751
  Normalizat = 1.7914
  Prefactor  = 0.671856
 **********
 **   18 **HESSE 
 **********

 FCN=   6218.156     FROM HESSE     STATUS=OK            31 CALLS      247 TOTAL
                     EDM=   .25E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .89575        .28420        .18919E-04   -1.5519    
   2  alpha         1.5875        .22683        .60866E-03   -.37363    
   3  Normalizat    1.7914        .30989        .28674E-03   -.69888    
   4  Prefactor     .67186        .16988        .24150E-03   -1.0464    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.47757e-14
Minuit parameter uncertainties:
  1  0.284197
  2  0.227192
  3  0.310227
  4  0.170006
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/9125': 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) = 6218.15604747
delta logL = 2.67982512553

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  8.958e-01  2.842e-01  1.000e-04  1.000e+04 ( 1.000e-10)
201        alpha:  1.588e+00  2.272e-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:  6.719e-01  1.700e-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.791e+00  3.102e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 60.15
Ra Dec: 226.103 10.498
Photon Index (Free Index): 1.59 +/- 0.23
Photon Flux (Free Index): 1.66e-07 +/- 5.81e-08
Energy Flux (Free Index): 1.72e-04 +/- 6.49e-05

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/9125/cmap_HighResolution_621648001_621907201_4FGL_J1504.4+1029_daily_bin1475.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.63e-07', energy_flux2='1.72e-04', photon_flux_error='6.54e-08', dlogl='2.68e+00', energy_flux='1.06e-04', photon_flux2='1.66e-07', job_status='DONE', time_completed='2021-09-10 22:04:40.278563', photon_index_error2='0.23', photon_index2='1.59', ts='54.69', fit_tolerance='1e-08', GAL='0.70', photon_index_error='0.00', energy_flux_error2='6.49e-05', EG='1.69', time_epoch_completed='1631336680.28', return_code='0', job_id='9125', GAL2='0.67', EG2='1.79', return_code2='0', energy_flux_error='2.65e-05', photon_flux_error2='5.81e-08', ts2='60.15', photon_index='2.12' WHERE bin_id='1475' AND source_name='4FGL J1504.4+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 22:04:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 9125: <4FGL_J1504.4+1029_daily_bin1475> in cluster <slac> Done

Job <4FGL_J1504.4+1029_daily_bin1475> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep 10 21:51:05 2021
Job was executed on host(s) <bullet0217>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 21:51:07 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:51:07 2021
Terminated at Fri Sep 10 22:04:41 2021
Results reported at Fri Sep 10 22:04:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_daily_bin1475 226.103 10.4978 621648001 621907201 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 :                                   612.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             271.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   820 sec.
    Turnaround time :                            816 sec.

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

