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


Performing analysis on: 4FGL_J1504.4+1029_daily_bin1503
RA = 226.103, Dec = 10.4978
tmin = 628905601, tmax = 629164801
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='9172', job_status='RUN', time_executed='2021-09-10 21:51:20.860668', time_epoch_executed='1631335880.86' WHERE source_name='4FGL J1504.4+1029' and cadence='daily' and bin_id='1503'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/9172

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/9172/ft1_4FGL_J1504.4+1029_daily_bin1503.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/9172/ft2_4FGL_J1504.4+1029_daily_bin1503.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/9172/ft1_4FGL_J1504.4+1029_daily_bin1503.fits outfile=/scratch/kocevski/9172/ft1_filteredMKT_4FGL_J1504.4+1029_daily_bin1503.fits ra=226.103 dec=10.4978 rad=12.0 tmin=628905601.0 tmax=629164801.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 3.58
user 3.34
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/9172/ft1_filtered_4FGL_J1504.4+1029_daily_bin1503.fits" evtable="EVENTS" scfile=/scratch/kocevski/9172/ft2_4FGL_J1504.4+1029_daily_bin1503.fits sctable="SC_DATA" outfile=/scratch/kocevski/9172/ltcube_628905601_629164801_4FGL_J1504.4+1029_daily_bin1503.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/9172/ft2_4FGL_J1504.4+1029_daily_bin1503.fits
.....................!
real 12.71
user 12.32
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/9172/ft1_filtered_4FGL_J1504.4+1029_daily_bin1503.fits evtable="EVENTS" scfile=/scratch/kocevski/9172/ft2_4FGL_J1504.4+1029_daily_bin1503.fits sctable="SC_DATA" expcube=/scratch/kocevski/9172/ltcube_628905601_629164801_4FGL_J1504.4+1029_daily_bin1503.fits outfile=/scratch/kocevski/9172/expmap_628905601_629164801_4FGL_J1504.4+1029_daily_bin1503.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/9172/ltcube_628905601_629164801_4FGL_J1504.4+1029_daily_bin1503.fits
.....................!
real 191.03
user 185.49
sys 5.10

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/9172/ft1_filtered_4FGL_J1504.4+1029_daily_bin1503.fits scfile=/scratch/kocevski/9172/ft2_4FGL_J1504.4+1029_daily_bin1503.fits outfile=/scratch/kocevski/9172/cmap_628905601_629164801_4FGL_J1504.4+1029_daily_bin1503.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/9172/ft1_filtered_4FGL_J1504.4+1029_daily_bin1503.fits scfile=/scratch/kocevski/9172/ft2_4FGL_J1504.4+1029_daily_bin1503.fits outfile=/scratch/kocevski/9172/cmap_HighResolution_628905601_629164801_4FGL_J1504.4+1029_daily_bin1503.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.56
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    72.405       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.9481       1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    25.584       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.632       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .25812E-01   1.0000         .10000E-03   10000.    
    14 'norm      '    1.3008       1.0000         .10000E-03   10000.    
    15 'norm      '    2.2216       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .19755E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.4575       1.0000         .10000E-03   10000.    
    19 'Prefactor '    22.150       1.0000         .10000E-03   10000.    
    20 'Prefactor '    29.316       1.0000         .10000E-03   10000.    
    21 'Prefactor '    53.708       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.3515       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    5.4427       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.2441       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .89298       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=   7618.334     FROM MIGRAD    STATUS=CONVERGED    711 CALLS     3534 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.403        .88092E-05** at limit **
   2  norm          72.392        37.561       -.22223E-05   -.34160E-04
   3  Prefactor     .10000E-03    3.6713        .12251E-06** at limit **
   4  Prefactor     3.9475        6.0688       -.28048E-05   -.39677E-03
   5  norm          .10000E-03    1.9995       -.19481E-07** at limit **
   6  Prefactor     .10000E-03    24.147       -.14086E-04** at limit **
   7  Prefactor     .10000E-03    9.0306       -.44791E-06** at limit **
   8  norm          .10000E-03    4.7174        .56934E-09** at limit **
   9  Prefactor     25.589        26.604       -.31269E-06    .71316E-04
  10  Prefactor     .10000E-03    9.2780        .45387E-06** at limit **
  11  Prefactor     .10000E-03    4.2986       -.56633E-08** at limit **
  12  Prefactor     11.650        21.641        .12183E-05    .91551E-04
  13  Prefactor     .10264E-03    16.615       -.34411E-05** at limit **
  14  norm          1.3009        .25294       -.21089E-07    .98616E-03
  15  norm          2.2209        2.4535       -.19836E-06   -.61142E-03
  16  norm          .10000E-03    2.0659        .81876E-08** at limit **
  17  norm          .10000E-03    119.41        .50938E-04** at limit **
  18  norm          5.4569        4.0286        .80479E-07    .32410E-04
  19  Prefactor     22.152        33.222       -.95933E-06   -.12378E-05
  20  Prefactor     29.282        42.059       -.13233E-04    .33847E-04
  21  Prefactor     53.709        33.682       -.86297E-06   -.38674E-05
  22  Prefactor     1.3478        4.4747       -.58960E-05   -.11294E-02
  23  Prefactor     .10000E-03    39.075        .27374E-04** at limit **
  24  Prefactor     .10000E-03    13.555       -.43078E-06** at limit **
  25  norm          5.4424        4.0324       -.81696E-06   -.36021E-03
  26  Prefactor     .10000E-03    49.950       -.33829E-04** at limit **
  27  Normalizat    1.2437        .22381        .20557E-05    .78183E-04
  28  Prefactor     .89324        .12570        .87176E-06    .12879E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 72.3924
  Prefactor  = 0.0001
  Prefactor  = 3.9475
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 25.5894
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.6497
  Prefactor  = 0.000102642
  norm       = 1.3009
  norm       = 2.22095
  norm       = 0.0001
  norm       = 0.000100001
  norm       = 5.45691
  Prefactor  = 22.152
  Prefactor  = 29.2822
  Prefactor  = 53.7093
  Prefactor  = 1.34779
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.44244
  Prefactor  = 0.0001
  Normalizat = 1.24375
  Prefactor  = 0.893244
 **********
 **   18 **HESSE 
 **********

 FCN=   7618.334     FROM HESSE     STATUS=OK           527 CALLS     4061 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          72.392        37.587        .47181E-04   -1.4004    
   3  Prefactor     .10000E-03    3.6992        .16324E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.9475        6.1146        .20302E-03   -1.5311    
   5  norm          .10000E-03    2.0386        .12046E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    24.106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.0359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    4.7205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     25.589        26.649        .79199E-04   -1.4696    
  10  Prefactor     .10000E-03    9.3101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.3048        .17672E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.650        21.593        .11746E-03   -1.5025    
  13  Prefactor     .10264E-03    17.300        .12967       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.3009        .25356        .18473E-04   -1.5480    
  15  norm          2.2209        2.4390        .13420E-03   -1.5410    
  16  norm          .10000E-03    2.0678        .12252E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    119.27        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.4569        4.0242        .14382E-03   -1.5241    
  19  Prefactor     22.152        33.267        .85108E-04   -1.4766    
  20  Prefactor     29.282        41.841        .73996E-04   -1.4625    
  21  Prefactor     53.709        33.814        .54730E-04   -1.4241    
  22  Prefactor     1.3478        4.5648        .33230E-03   -1.5476    
  23  Prefactor     .10000E-03    38.863        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    13.582        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          5.4424        4.0342        .14554E-03   -1.5241    
  26  Prefactor     .10000E-03    49.611        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.2437        .26946        .31108E-03   -.85261    
  28  Prefactor     .89324        .15068        .21190E-03   -.96378    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.39008e-09
Minuit parameter uncertainties:
  1  6.23773e-07
  2  37.5994
  3  1.2706e-05
  4  6.11559
  5  3.00396e-07
  6  8.47519e-06
  7  6.0241e-06
  8  3.61092e-06
  9  26.6613
  10  1.25149e-05
  11  3.84279e-06
  12  21.6077
  13  0.0135243
  14  0.253564
  15  2.43911
  16  4.28363e-07
  17  0.000748417
  18  4.02439
  19  33.2946
  20  41.8825
  21  33.8266
  22  4.56594
  23  5.97283e-05
  24  7.24163e-06
  25  4.03441
  26  8.17922e-06
  27  0.269763
  28  0.150749
Done.

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

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  1.301e+00  2.536e-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:  8.932e-01  1.507e-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.244e+00  2.698e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 78.87
Ra Dec: 226.103 10.498
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 3.17e-07 +/- 6.17e-08
Energy Flux (Fixed Index): 1.28e-04 +/- 2.50e-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) = 7618.29962877
delta logL = 0.0343316651033

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7618.29657995
delta logL = 0.0373804842648

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2939       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1826       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2281       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89925       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=   7618.297     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      200 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2939        .32356        .41221E-02   -.20014E-02
   2  alpha         2.1826        .26669        .15823       -.26919E-04
   3  Normalizat    1.2281        .21527        .70654E-01    .16901E-04
   4  Prefactor     .89925        .12528        .44995E-01    .11844E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.29392
  alpha      = 2.1826
  Normalizat = 1.22809
  Prefactor  = 0.899252
 **********
 **   18 **HESSE 
 **********

 FCN=   7618.297     FROM HESSE     STATUS=OK            31 CALLS      231 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2939        .25223        .18233E-04   -1.5480    
   2  alpha         2.1826        .21400        .68212E-02   -.12730    
   3  Normalizat    1.2281        .25818        .31263E-03   -.85739    
   4  Prefactor     .89925        .14956        .21125E-03   -.96167    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.78421e-11
Minuit parameter uncertainties:
  1  0.252234
  2  0.214262
  3  0.258449
  4  0.149627
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/9172': 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) = 7618.29657995
delta logL = 0.0373804851588

Extracting fit parameters...

4FGL J1504.4+1029
   Spectrum: LogParabola
200         norm:  1.294e+00  2.522e-01  1.000e-04  1.000e+04 ( 1.000e-10)
201        alpha:  2.183e+00  2.143e-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:  8.993e-01  1.496e-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.228e+00  2.584e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 78.44
Ra Dec: 226.103 10.498
Photon Index (Free Index): 2.18 +/- 0.21
Photon Flux (Free Index): 3.29e-07 +/- 7.67e-08
Energy Flux (Free Index): 1.24e-04 +/- 2.83e-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/9172/cmap_HighResolution_628905601_629164801_4FGL_J1504.4+1029_daily_bin1503.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.17e-07', energy_flux2='1.24e-04', photon_flux_error='6.17e-08', dlogl='3.74e-02', energy_flux='1.28e-04', photon_flux2='3.29e-07', job_status='DONE', time_completed='2021-09-10 22:02:59.406678', photon_index_error2='0.21', photon_index2='2.18', ts='78.87', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='2.83e-05', EG='1.24', time_epoch_completed='1631336579.41', return_code='0', job_id='9172', GAL2='0.90', EG2='1.23', return_code2='0', energy_flux_error='2.50e-05', photon_flux_error2='7.67e-08', ts2='78.44', photon_index='2.12' WHERE bin_id='1503' AND source_name='4FGL J1504.4+1029' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 22:02:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 9172: <4FGL_J1504.4+1029_daily_bin1503> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1504.4+1029_daily_bin1503 226.103 10.4978 628905601 629164801 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 :                                   694.04 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             333.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   708 sec.
    Turnaround time :                            709 sec.

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

