/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 101 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 = 7009
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1125.9+2005_daily_bin43
RA = 171.491, Dec = 20.0912
tmin = 250473601, tmax = 250732801
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='778487', job_status='RUN', time_executed='2021-09-03 20:18:39.987357', time_epoch_executed='1630725519.99' WHERE source_name='4FGL J1125.9+2005' and cadence='daily' and bin_id='43'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/778487

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

Retrieving the FT1 file...

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

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

Retrieving 42 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/778487/ft1_4FGL_J1125.9+2005_daily_bin43.fits


Retrieving the FT1 file...

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

Retrieving 44 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/778487/ft2_4FGL_J1125.9+2005_daily_bin43.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/778487/ft1_4FGL_J1125.9+2005_daily_bin43.fits outfile=/scratch/kocevski/778487/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin43.fits ra=171.491 dec=20.0912 rad=12.0 tmin=250473601.0 tmax=250732801.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 1.38
user 1.18
sys 0.16

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/778487/ft2_4FGL_J1125.9+2005_daily_bin43.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/778487/ft2_4FGL_J1125.9+2005_daily_bin43.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/778487/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin43.fits evtable="EVENTS" outfile="/scratch/kocevski/778487/ft1_filtered_4FGL_J1125.9+2005_daily_bin43.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.68
user 0.36
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/778487/ft1_filtered_4FGL_J1125.9+2005_daily_bin43.fits" evtable="EVENTS" scfile=/scratch/kocevski/778487/ft2_4FGL_J1125.9+2005_daily_bin43.fits sctable="SC_DATA" outfile=/scratch/kocevski/778487/ltcube_250473601_250732801_4FGL_J1125.9+2005_daily_bin43.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/778487/ft2_4FGL_J1125.9+2005_daily_bin43.fits
.....................!
real 18.93
user 18.47
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/778487/ft1_filtered_4FGL_J1125.9+2005_daily_bin43.fits evtable="EVENTS" scfile=/scratch/kocevski/778487/ft2_4FGL_J1125.9+2005_daily_bin43.fits sctable="SC_DATA" expcube=/scratch/kocevski/778487/ltcube_250473601_250732801_4FGL_J1125.9+2005_daily_bin43.fits outfile=/scratch/kocevski/778487/expmap_250473601_250732801_4FGL_J1125.9+2005_daily_bin43.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/778487/ltcube_250473601_250732801_4FGL_J1125.9+2005_daily_bin43.fits
.....................!
real 195.75
user 185.77
sys 5.35

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 192 point sources and 0 extended sources

Setting source of interest to:
4FGL J1125.9+2005 @ 171.491 20.0912

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/778487/ft1_filtered_4FGL_J1125.9+2005_daily_bin43.fits scfile=/scratch/kocevski/778487/ft2_4FGL_J1125.9+2005_daily_bin43.fits outfile=/scratch/kocevski/778487/cmap_250473601_250732801_4FGL_J1125.9+2005_daily_bin43.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=171.491 yref=20.0912 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.57
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/778487/ft1_filtered_4FGL_J1125.9+2005_daily_bin43.fits scfile=/scratch/kocevski/778487/ft2_4FGL_J1125.9+2005_daily_bin43.fits outfile=/scratch/kocevski/778487/cmap_HighResolution_250473601_250732801_4FGL_J1125.9+2005_daily_bin43.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=171.491 yref=20.0912 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/778487/ft1_filtered_4FGL_J1125.9+2005_daily_bin43.fits evtable="EVENTS" scfile=/scratch/kocevski/778487/ft2_4FGL_J1125.9+2005_daily_bin43.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/778487/Model_4FGL_J1125.9+2005_daily_bin43.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/778487/ft1_filtered_4FGL_J1125.9+2005_daily_bin43.fits.....................!
real 55.31
user 53.79
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/778487/ft1_filtered_4FGL_J1125.9+2005_daily_bin43.fits', '/scratch/kocevski/778487/ft2_4FGL_J1125.9+2005_daily_bin43.fits', expMap='/scratch/kocevski/778487/expmap_250473601_250732801_4FGL_J1125.9+2005_daily_bin43.fits', expCube='/scratch/kocevski/778487/ltcube_250473601_250732801_4FGL_J1125.9+2005_daily_bin43.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/778487/Model_4FGL_J1125.9+2005_daily_bin43.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1125.9+2005'

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  2.572e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.242e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  1.355e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/778487/ft1_filtered_4FGL_J1125.9+2005_daily_bin43.fits
Spacecraft file(s): /scratch/kocevski/778487/ft2_4FGL_J1125.9+2005_daily_bin43.fits
Exposure map: /scratch/kocevski/778487/expmap_250473601_250732801_4FGL_J1125.9+2005_daily_bin43.fits
Exposure cube: /scratch/kocevski/778487/ltcube_250473601_250732801_4FGL_J1125.9+2005_daily_bin43.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/778487/Model_4FGL_J1125.9+2005_daily_bin43.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) = 6006.70645352

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.1678       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.7449       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.3232       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.9677       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.3251       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10661E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10193E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.3961       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .54493E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    2.0770       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.3851       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    71.211       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.2229       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.0348       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .70048       1.0000         .10000E-03   10000.    
    20 'norm      '    3.9321       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .98749       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .66272       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1122       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6006.693     FROM MIGRAD    STATUS=CONVERGED    585 CALLS     2969 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.1676        8.3390        .58295E-06   -.54116E-03
   2  Prefactor     3.7448        2.4685       -.43658E-07   -.77250E-04
   3  Prefactor     .10000E-03    3.1067        .54775E-07** at limit **
   4  Prefactor     1.3286        7.9896        .15290E-05   -.29640E-03
   5  Prefactor     8.9662        8.9382       -.42468E-06   -.83338E-04
   6  Prefactor     6.3238        11.615        .38389E-06    .16907E-04
   7  Prefactor     .10000E-03    16.913        .25547E-06** at limit **
   8  norm          .10000E-03    .55295        .90496E-07** at limit **
   9  Prefactor     1.3967        2.4744        .14291E-06   -.21353E-03
  10  Prefactor     .10000E-03    4.7283        .11078E-06** at limit **
  11  norm          .10000E-03    5.6587        .12263E-06** at limit **
  12  norm          2.0780        6.8585        .57887E-06   -.15114E-03
  13  Prefactor     7.3825        7.1466       -.14562E-07   -.59454E-04
  14  Prefactor     .10000E-03    7.3418        .27350E-05** at limit **
  15  Prefactor     71.209        41.614       -.37919E-06   -.11037E-03
  16  Prefactor     4.2256        11.242       -.58075E-07   -.12002E-03
  17  Prefactor     .10000E-03    7.3285       -.15528E-05** at limit **
  18  Prefactor     2.0333        5.5009        .13053E-06   -.27422E-03
  19  Prefactor     .70084        1.6569        .16155E-06   -.55765E-03
  20  norm          3.9319        1.6719        .64692E-08   -.44369E-04
  21  Prefactor     .10000E-03    9.1266       -.12825E-05** at limit **
  22  Prefactor     .98822        3.6610        .10783E-05   -.44231E-03
  23  Prefactor     .10000E-03    1.4448        .12600E-07** at limit **
  24  Normalizat    .66295        .17498       -.86440E-06   -.19426E-03
  25  Prefactor     1.1119        .16979       -.44395E-07   -.18274E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.16757
  Prefactor  = 3.7448
  Prefactor  = 0.0001
  Prefactor  = 1.32859
  Prefactor  = 8.96619
  Prefactor  = 6.32384
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.39673
  Prefactor  = 0.0001
  norm       = 0.000100003
  norm       = 2.07801
  Prefactor  = 7.3825
  Prefactor  = 0.000100002
  Prefactor  = 71.2087
  Prefactor  = 4.22556
  Prefactor  = 0.0001
  Prefactor  = 2.03329
  Prefactor  = 0.700838
  norm       = 3.93189
  Prefactor  = 0.0001
  Prefactor  = 0.98822
  Prefactor  = 0.0001
  Normalizat = 0.662951
  Prefactor  = 1.11189
 **********
 **   18 **HESSE 
 **********

 FCN=   6006.693     FROM HESSE     STATUS=OK           443 CALLS     3412 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.1676        8.6325        .66183E-03   -1.5102    
   2  Prefactor     3.7448        2.4642        .92516E-04   -1.5321    
   3  Prefactor     .10000E-03    3.1480        .13337E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.3286        8.7970        .38231E-03   -1.5477    
   5  Prefactor     8.9662        8.8342        .13384E-03   -1.5109    
   6  Prefactor     6.3238        11.444        .15960E-03   -1.5205    
   7  Prefactor     .10000E-03    17.295        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.5202        .11023E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.3967        2.4231        .14514E-03   -1.5472    
  10  Prefactor     .10000E-03    4.8245        .16451E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    6.2080        .61489E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.0780        6.9380        .28658E-03   -1.5420    
  13  Prefactor     7.3825        7.1532        .14759E-03   -1.5164    
  14  Prefactor     .10000E-03    8.0588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     71.209        42.148        .47572E-04   -1.4018    
  16  Prefactor     4.2256        11.335        .19609E-03   -1.5297    
  17  Prefactor     .10000E-03    7.5343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.0333        5.4847        .28734E-03   -1.5423    
  19  Prefactor     .70084        1.6438        .14326E-03   -1.5541    
  20  norm          3.9319        1.6709        .63065E-04   -1.5311    
  21  Prefactor     .10000E-03    9.3061        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .98822        4.7515        .23597E-02   -1.5509    
  23  Prefactor     .10000E-03    1.4970        .18128E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .66295        .19663        .26098E-03   -1.0537    
  25  Prefactor     1.1119        .19381        .22242E-03   -.89087    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26491e-09
Minuit parameter uncertainties:
  1  8.63369
  2  2.46429
  3  2.3315e-06
  4  6.83865
  5  8.83553
  6  11.448
  7  3.37208e-05
  8  1.21792e-05
  9  2.4233
  10  7.35713e-06
  11  0.000276656
  12  6.94071
  13  7.15405
  14  0.000229645
  15  42.1659
  16  11.3409
  17  0.000122478
  18  5.48604
  19  1.64395
  20  1.6709
  21  0.000113487
  22  4.33417
  23  5.90528e-06
  24  0.196838
  25  0.193931
Done.

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

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  7.383e+00  7.154e+00  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.242e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  1.355e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
600    Prefactor:  1.112e+00  1.939e-01  0.000e+00  1.000e+01 ( 1.000e+00)
601        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
602        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
599   Normalization:  6.630e-01  1.968e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.99
Ra Dec: 171.491 20.091
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 2.05e-08 +/- 1.98e-08
Energy Flux (Fixed Index): 8.54e-06 +/- 8.28e-06

TS (Fixed Index): 2.99
Ra Dec: 171.491 20.091
Photon Flux Upper Limit: 7.37e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.63e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/778487/likelihoodResults_250473601_250732801_4FGL_J1125.9+2005_daily_bin43.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) = 6006.67190483
delta logL = 0.0214578993628

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6006.66211243
delta logL = 0.0312503054174

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.2873       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4695       1.0000          .0000       10.000    
     3 'Normalizat'    .65437       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1172       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6006.662     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      249 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.2871        8.3057        .16009E-03   -.68886E-04
   2  Index         2.4697        .96462        .68321E-02   -.14072E-04
   3  Normalizat    .65439        .18231        .26259E-03   -.84295E-04
   4  Prefactor     1.1172        .19399        .22196E-03   -.10216E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.28712
  Index      = 2.46966
  Normalizat = 0.654386
  Prefactor  = 1.11718
 **********
 **   18 **HESSE 
 **********

 FCN=   6006.662     FROM HESSE     STATUS=OK            25 CALLS      274 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.2871        7.7254        .64034E-05   -1.5206    
   2  Index         2.4697        .89697        .27329E-03   -.53062    
   3  Normalizat    .65439        .18197        .10504E-04   -1.0572    
   4  Prefactor     1.1172        .19392        .44392E-04   -.88919    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.18291e-11
Minuit parameter uncertainties:
  1  7.72667
  2  0.903571
  3  0.18214
  4  0.194041
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/778487': 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) = 6006.66211238
delta logL = 0.0312503528066

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  6.287e+00  7.727e+00  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.470e+00  9.036e-01  0.000e+00  1.000e+01 (-1.000e+00)
316        Scale:  1.355e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
600    Prefactor:  1.117e+00  1.940e-01  0.000e+00  1.000e+01 ( 1.000e+00)
601        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
602        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
599   Normalization:  6.544e-01  1.821e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.06
Ra Dec: 171.491 20.091
Photon Index (Free Index): 2.47 +/- 0.90
Photon Flux (Free Index): 2.67e-08 +/- 3.44e-08
Energy Flux (Free Index): 8.03e-06 +/- 7.39e-06

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/778487/cmap_HighResolution_250473601_250732801_4FGL_J1125.9+2005_daily_bin43.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.63e-03', comment='SUCCESS', photon_flux='2.05e-08', energy_flux2='8.03e-06', photon_flux_error='1.98e-08', dlogl='3.13e-02', energy_flux='8.54e-06', photon_flux2='2.67e-08', job_status='DONE', time_completed='2021-09-03 20:31:02.690202', photon_index_error2='0.90', photon_index2='2.47', ts='2.99', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='7.37e-08', energy_flux_error2='7.39e-06', EG='0.66', time_epoch_completed='1630726262.69', return_code='0', job_id='778487', GAL2='1.12', EG2='0.65', return_code2='0', energy_flux_error='8.28e-06', photon_flux_error2='3.44e-08', ts2='3.06', photon_index='2.24' WHERE bin_id='43' AND source_name='4FGL J1125.9+2005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 20:31:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 778487: <4FGL_J1125.9+2005_daily_bin43> in cluster <slac> Done

Job <4FGL_J1125.9+2005_daily_bin43> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Fri Sep  3 20:16:21 2021
Job was executed on host(s) <bullet0255>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 20:16:29 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep  3 20:16:29 2021
Terminated at Fri Sep  3 20:31:03 2021
Results reported at Fri Sep  3 20:31:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1125.9+2005_daily_bin43 171.491 20.0912 250473601 250732801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1125.9+2005 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   736.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             312.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   873 sec.
    Turnaround time :                            882 sec.

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

