/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 76 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 = 7316
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1125.9+2005_daily_bin26
RA = 171.491, Dec = 20.0912
tmin = 246067201, tmax = 246326401
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='778460', job_status='RUN', time_executed='2021-09-03 20:18:24.852633', time_epoch_executed='1630725504.85' WHERE source_name='4FGL J1125.9+2005' and cadence='daily' and bin_id='26'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/778460

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/778460/ft1_4FGL_J1125.9+2005_daily_bin26.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/778460/ft2_4FGL_J1125.9+2005_daily_bin26.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/778460/ft1_4FGL_J1125.9+2005_daily_bin26.fits outfile=/scratch/kocevski/778460/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin26.fits ra=171.491 dec=20.0912 rad=12.0 tmin=246067201.0 tmax=246326401.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.68
user 1.34
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/778460/ft2_4FGL_J1125.9+2005_daily_bin26.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/778460/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin26.fits evtable="EVENTS" outfile="/scratch/kocevski/778460/ft1_filtered_4FGL_J1125.9+2005_daily_bin26.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.63
user 0.37
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/778460/ft1_filtered_4FGL_J1125.9+2005_daily_bin26.fits" evtable="EVENTS" scfile=/scratch/kocevski/778460/ft2_4FGL_J1125.9+2005_daily_bin26.fits sctable="SC_DATA" outfile=/scratch/kocevski/778460/ltcube_246067201_246326401_4FGL_J1125.9+2005_daily_bin26.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/778460/ft2_4FGL_J1125.9+2005_daily_bin26.fits
.....................!
real 16.47
user 15.94
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/778460/ft1_filtered_4FGL_J1125.9+2005_daily_bin26.fits evtable="EVENTS" scfile=/scratch/kocevski/778460/ft2_4FGL_J1125.9+2005_daily_bin26.fits sctable="SC_DATA" expcube=/scratch/kocevski/778460/ltcube_246067201_246326401_4FGL_J1125.9+2005_daily_bin26.fits outfile=/scratch/kocevski/778460/expmap_246067201_246326401_4FGL_J1125.9+2005_daily_bin26.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/778460/ltcube_246067201_246326401_4FGL_J1125.9+2005_daily_bin26.fits
.....................!
real 192.90
user 187.39
sys 4.94

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/778460/ft1_filtered_4FGL_J1125.9+2005_daily_bin26.fits scfile=/scratch/kocevski/778460/ft2_4FGL_J1125.9+2005_daily_bin26.fits outfile=/scratch/kocevski/778460/cmap_246067201_246326401_4FGL_J1125.9+2005_daily_bin26.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.56
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/778460/ft1_filtered_4FGL_J1125.9+2005_daily_bin26.fits scfile=/scratch/kocevski/778460/ft2_4FGL_J1125.9+2005_daily_bin26.fits outfile=/scratch/kocevski/778460/cmap_HighResolution_246067201_246326401_4FGL_J1125.9+2005_daily_bin26.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.56
user 0.41
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/778460/ft1_filtered_4FGL_J1125.9+2005_daily_bin26.fits', '/scratch/kocevski/778460/ft2_4FGL_J1125.9+2005_daily_bin26.fits', expMap='/scratch/kocevski/778460/expmap_246067201_246326401_4FGL_J1125.9+2005_daily_bin26.fits', expCube='/scratch/kocevski/778460/ltcube_246067201_246326401_4FGL_J1125.9+2005_daily_bin26.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/778460/Model_4FGL_J1125.9+2005_daily_bin26.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/778460/ft1_filtered_4FGL_J1125.9+2005_daily_bin26.fits
Spacecraft file(s): /scratch/kocevski/778460/ft2_4FGL_J1125.9+2005_daily_bin26.fits
Exposure map: /scratch/kocevski/778460/expmap_246067201_246326401_4FGL_J1125.9+2005_daily_bin26.fits
Exposure cube: /scratch/kocevski/778460/ltcube_246067201_246326401_4FGL_J1125.9+2005_daily_bin26.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/778460/Model_4FGL_J1125.9+2005_daily_bin26.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) = 7668.86864745

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.8483       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.6951       1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.009       1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.033       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.4128       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .78356       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .67234       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.5118       1.0000         .10000E-03   10000.    
    12 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10953E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    85.259       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .54997       1.0000         .10000E-03   10000.    
    20 'norm      '    3.6048       1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.1389       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.5459       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .83855       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.3204       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=   7668.857     FROM MIGRAD    STATUS=CONVERGED    568 CALLS     2908 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.7335        .10725E-07** at limit **
   2  Prefactor     1.8483        1.5701       -.50654E-07    .10854E-04
   3  Prefactor     1.6945        1.2301        .16948E-06   -.15103E-02
   4  Prefactor     13.010        8.0838       -.10672E-06    .74043E-04
   5  Prefactor     10.034        7.9237        .69082E-07    .43749E-04
   6  Prefactor     8.4139        7.5929       -.38426E-08    .36212E-04
   7  Prefactor     .10000E-03    5.6481       -.27378E-05** at limit **
   8  norm          .78320        1.2824       -.12950E-06   -.12792E-03
   9  Prefactor     .67130        1.7427       -.18384E-06   -.26873E-03
  10  Prefactor     .10000E-03    2.5890        .97230E-07** at limit **
  11  norm          5.5155        11.740        .92321E-06    .32381E-04
  12  norm          .10000E-03    7.4305       -.25281E-05** at limit **
  13  Prefactor     .10000E-03    4.2476        .28256E-06** at limit **
  14  Prefactor     .10000E-03    40.077       -.23045E-06** at limit **
  15  Prefactor     85.249        44.034       -.85793E-05   -.23266E-04
  16  Prefactor     .10000E-03    13.189        .10026E-05** at limit **
  17  Prefactor     .10000E-03    5.6708       -.24214E-05** at limit **
  18  Prefactor     .10000E-03    6.0103        .68893E-05** at limit **
  19  Prefactor     .54974        .76160        .12853E-07    .74319E-04
  20  norm          3.6049        1.5568       -.45865E-07    .74581E-04
  21  Prefactor     9.1385        16.873       -.59845E-06   -.50557E-05
  22  Prefactor     5.5460        3.9920       -.10393E-05   -.23649E-03
  23  Prefactor     .10000E-03    .81305        .23172E-07** at limit **
  24  Normalizat    .83840        .16932        .21047E-05   -.48740E-04
  25  Prefactor     1.3206        .17330        .15917E-06    .53471E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.84826
  Prefactor  = 1.69454
  Prefactor  = 13.0096
  Prefactor  = 10.0336
  Prefactor  = 8.41395
  Prefactor  = 0.0001
  norm       = 0.783199
  Prefactor  = 0.671304
  Prefactor  = 0.0001
  norm       = 5.51548
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 85.2485
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.549736
  norm       = 3.60489
  Prefactor  = 9.13849
  Prefactor  = 5.54598
  Prefactor  = 0.0001
  Normalizat = 0.838397
  Prefactor  = 1.32064
 **********
 **   18 **HESSE 
 **********

 FCN=   7668.857     FROM HESSE     STATUS=OK           433 CALLS     3341 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.7405        .14138E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.8483        1.5628        .97805E-04   -1.5436    
   3  Prefactor     1.6945        5.0531        .16161E-02   -1.5448    
   4  Prefactor     13.010        8.0836        .11106E-03   -1.4986    
   5  Prefactor     10.034        7.9183        .12650E-03   -1.5074    
   6  Prefactor     8.4139        7.5147        .13821E-03   -1.5128    
   7  Prefactor     .10000E-03    5.6799        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .78320        1.2421        .11809E-03   -1.5531    
   9  Prefactor     .67130        1.6640        .17476E-02   -1.5544    
  10  Prefactor     .10000E-03    2.6054        .13759E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.5155        11.675        .17114E-03   -1.5238    
  12  norm          .10000E-03    7.5989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.2629        .17623E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    41.490        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     85.249        44.069        .43507E-04   -1.3859    
  16  Prefactor     .10000E-03    13.364        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.6902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.0487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .54974        .63619        .87371E-03   -1.5560    
  20  norm          3.6049        1.5563        .69609E-04   -1.5328    
  21  Prefactor     9.1385        16.870        .13258E-03   -1.5103    
  22  Prefactor     5.5460        4.0020        .14030E-03   -1.5237    
  23  Prefactor     .10000E-03    .82798        .77065E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .83840        .19934        .27962E-03   -.98660    
  25  Prefactor     1.3206        .20769        .24726E-03   -.82695    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.4747e-08
Minuit parameter uncertainties:
  1  2.99717e-06
  2  1.56279
  3  5.05435
  4  8.08424
  5  7.91913
  6  7.51552
  7  6.40111e-06
  8  1.2421
  9  1.6641
  10  2.75354e-06
  11  11.68
  12  8.41963e-06
  13  1.23559e-06
  14  0.000214455
  15  44.0858
  16  4.73996e-05
  17  6.57811e-06
  18  1.12985e-05
  19  0.636197
  20  1.55633
  21  16.879
  22  4.00219
  23  1.03856e-06
  24  0.199514
  25  0.20782
Done.

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

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  1.236e-06  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.321e+00  2.078e-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:  8.384e-01  1.995e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/778460/likelihoodResults_246067201_246326401_4FGL_J1125.9+2005_daily_bin26.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): 102
logL (Free Index) = 7668.85807219
delta logL = -0.00111604557151

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7668.8569561
delta logL = 4.17185219703e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2295       1.0000          .0000       10.000    
     3 'Normalizat'    .83841       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3206       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=   7668.857     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      246 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10091E-03    62.901        .17729E-02** at limit **
   2  Index         2.1709        5.9214        .50000        .18630E-04
   3  Normalizat    .83840        .15435E-01    .27962E-03   -.23500E-04
   4  Prefactor     1.3206        .16789E-01    .24726E-03   -.10161E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100906
  Index      = 2.17092
  Normalizat = 0.838398
  Prefactor  = 1.32064
 **********
 **   18 **HESSE 
 **********

 FCN=   7668.857     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      275 TOTAL
                     EDM=   .50E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10091E-03    281.84        .35458E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1709        5.1275        .50000       -.60142    
   3  Normalizat    .83840        .34937E-01    .11185E-04   -.98660    
   4  Prefactor     1.3206        .37985E-01    .98903E-05   -.82695    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.00941e-08
Minuit parameter uncertainties:
  1  0.0321069
  2  837.153
  3  0.0349376
  4  0.0379855
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/778460': 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): 102
logL (Free Index) = 7668.85695588
delta logL = 2.63018591795e-07

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  1.009e-04  3.211e-02  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.171e+00  8.372e+02  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.321e+00  3.799e-02  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:  8.384e-01  3.494e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 171.491 20.091

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/778460/cmap_HighResolution_246067201_246326401_4FGL_J1125.9+2005_daily_bin26.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.74e-03', job_status='DONE', photon_flux_upper_limit='4.90e-08', time_completed='2021-09-03 20:32:38.485361', job_id='778460', GAL2='1.32', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1630726358.49', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.32', dlogl='2.63e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='26' AND source_name='4FGL J1125.9+2005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 20:32:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0021>
Subject: Job 778460: <4FGL_J1125.9+2005_daily_bin26> in cluster <slac> Done

Job <4FGL_J1125.9+2005_daily_bin26> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Fri Sep  3 20:16:19 2021
Job was executed on host(s) <bullet0021>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 20:16:27 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:27 2021
Terminated at Fri Sep  3 20:32:39 2021
Results reported at Fri Sep  3 20:32:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1125.9+2005_daily_bin26 171.491 20.0912 246067201 246326401 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 :                                   852.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             323.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   971 sec.
    Turnaround time :                            980 sec.

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

