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


Performing analysis on: 4FGL_J1125.9+2005_daily_bin775
RA = 171.491, Dec = 20.0912
tmin = 440208001, tmax = 440467201
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='782900', job_status='RUN', time_executed='2021-09-03 20:34:32.899857', time_epoch_executed='1630726472.9' WHERE source_name='4FGL J1125.9+2005' and cadence='daily' and bin_id='775'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/782900

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/782900/ft1_4FGL_J1125.9+2005_daily_bin775.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/782900/ft2_4FGL_J1125.9+2005_daily_bin775.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/782900/ft1_4FGL_J1125.9+2005_daily_bin775.fits outfile=/scratch/kocevski/782900/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin775.fits ra=171.491 dec=20.0912 rad=12.0 tmin=440208001.0 tmax=440467201.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.46
user 3.23
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/782900/ft1_filtered_4FGL_J1125.9+2005_daily_bin775.fits" evtable="EVENTS" scfile=/scratch/kocevski/782900/ft2_4FGL_J1125.9+2005_daily_bin775.fits sctable="SC_DATA" outfile=/scratch/kocevski/782900/ltcube_440208001_440467201_4FGL_J1125.9+2005_daily_bin775.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/782900/ft2_4FGL_J1125.9+2005_daily_bin775.fits
.....................!
real 17.26
user 16.80
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/782900/ft1_filtered_4FGL_J1125.9+2005_daily_bin775.fits evtable="EVENTS" scfile=/scratch/kocevski/782900/ft2_4FGL_J1125.9+2005_daily_bin775.fits sctable="SC_DATA" expcube=/scratch/kocevski/782900/ltcube_440208001_440467201_4FGL_J1125.9+2005_daily_bin775.fits outfile=/scratch/kocevski/782900/expmap_440208001_440467201_4FGL_J1125.9+2005_daily_bin775.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/782900/ltcube_440208001_440467201_4FGL_J1125.9+2005_daily_bin775.fits
.....................!
real 192.67
user 187.12
sys 4.95

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/782900/ft1_filtered_4FGL_J1125.9+2005_daily_bin775.fits scfile=/scratch/kocevski/782900/ft2_4FGL_J1125.9+2005_daily_bin775.fits outfile=/scratch/kocevski/782900/cmap_440208001_440467201_4FGL_J1125.9+2005_daily_bin775.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/782900/ft1_filtered_4FGL_J1125.9+2005_daily_bin775.fits scfile=/scratch/kocevski/782900/ft2_4FGL_J1125.9+2005_daily_bin775.fits outfile=/scratch/kocevski/782900/cmap_HighResolution_440208001_440467201_4FGL_J1125.9+2005_daily_bin775.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.57
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.9817       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.8464       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.1164       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .63352E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.3019       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.4264       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10422E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    34.414       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .65714       1.0000         .10000E-03   10000.    
    20 'norm      '    3.6280       1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.970       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.4122       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .76605E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0842       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .84650       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=   6573.201     FROM MIGRAD    STATUS=CONVERGED    568 CALLS     2489 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.9894        11.217        .22822E-05   -.77612E-04
   2  Prefactor     2.8461        2.6454       -.20787E-06   -.90801E-04
   3  Prefactor     .10000E-03    2.6411        .23120E-07** at limit **
   4  Prefactor     3.1340        9.9678       -.43743E-07   -.12091E-04
   5  Prefactor     .10000E-03    7.2308       -.13616E-06** at limit **
   6  Prefactor     3.3135        10.991        .24350E-06   -.19195E-04
   7  Prefactor     .10000E-03    8.0767       -.18512E-06** at limit **
   8  norm          4.4264        1.7422        .15864E-07   -.23775E-04
   9  Prefactor     .10000E-03    1.8883        .23269E-06** at limit **
  10  Prefactor     .10000E-03    5.8661        .21769E-06** at limit **
  11  norm          .10000E-03    3.2866        .60699E-07** at limit **
  12  norm          .10000E-03    5.4877       -.23869E-06** at limit **
  13  Prefactor     .10000E-03    9.8387       -.17103E-06** at limit **
  14  Prefactor     .10000E-03    11.151       -.15720E-07** at limit **
  15  Prefactor     .10000E-03    6.7618        .27242E-06** at limit **
  16  Prefactor     .10000E-03    14.299        .22535E-07** at limit **
  17  Prefactor     34.399        20.456       -.11494E-05   -.35625E-03
  18  Prefactor     .10000E-03    11.576        .30341E-06** at limit **
  19  Prefactor     .65842        1.5465        .25746E-06    .71407E-04
  20  norm          3.6288        1.8389        .67385E-07   -.17409E-04
  21  Prefactor     11.969        10.202        .25073E-07   -.78729E-07
  22  Prefactor     3.4089        3.6605        .19042E-06   -.92834E-04
  23  Prefactor     .10000E-03    1.1076        .49236E-07** at limit **
  24  Normalizat    1.0842        .17528        .28330E-06   -.98381E-04
  25  Prefactor     .84650        .16775       -.76098E-06   -.34384E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.98935
  Prefactor  = 2.84606
  Prefactor  = 0.0001
  Prefactor  = 3.13396
  Prefactor  = 0.0001
  Prefactor  = 3.31347
  Prefactor  = 0.0001
  norm       = 4.42635
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.3994
  Prefactor  = 0.0001
  Prefactor  = 0.658419
  norm       = 3.62879
  Prefactor  = 11.9693
  Prefactor  = 3.40893
  Prefactor  = 0.0001
  Normalizat = 1.0842
  Prefactor  = 0.846502
 **********
 **   18 **HESSE 
 **********

 FCN=   6573.201     FROM HESSE     STATUS=OK           429 CALLS     2918 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.9894        11.313        .66869E-03   -1.5108    
   2  Prefactor     2.8461        2.6244        .11621E-03   -1.5371    
   3  Prefactor     .10000E-03    2.6572        .12864E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.1340        8.9613        .22968E-03   -1.5354    
   5  Prefactor     .10000E-03    17.084        .37830E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.3135        10.518        .22280E-03   -1.5344    
   7  Prefactor     .10000E-03    8.1187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.4264        1.7467        .63222E-04   -1.5287    
   9  Prefactor     .10000E-03    3.0676        .20430E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.9424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    3.2975        .14353E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    5.5329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    9.9311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.217        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.7745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    14.521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     34.399        21.425        .68311E-04   -1.4534    
  18  Prefactor     .10000E-03    12.101        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .65842        1.5048        .14259E-03   -1.5546    
  20  norm          3.6288        1.8378        .74700E-04   -1.5327    
  21  Prefactor     11.969        10.201        .11579E-03   -1.5016    
  22  Prefactor     3.4089        3.6222        .15160E-03   -1.5339    
  23  Prefactor     .10000E-03    9.3323        .16330E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0842        .19978        .23338E-03   -.90261    
  25  Prefactor     .84650        .19104        .26732E-03   -.98036    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.92314e-10
Minuit parameter uncertainties:
  1  11.3157
  2  2.62446
  3  4.64622e-07
  4  8.96515
  5  0.000120626
  6  10.5236
  7  2.1184e-05
  8  1.74673
  9  3.98952e-05
  10  1.33693e-05
  11  1.96718e-06
  12  1.24091e-05
  13  2.65081e-05
  14  4.0047e-06
  15  2.2463e-05
  16  3.30499e-05
  17  21.4294
  18  1.82843e-05
  19  1.50484
  20  1.83787
  21  10.2028
  22  3.62241
  23  0.000125409
  24  0.199921
  25  0.191186
Done.

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

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  2.651e-05  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:  8.465e-01  1.912e-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:  1.084e+00  1.999e-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: 6.95e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.31e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/782900/likelihoodResults_440208001_440467201_4FGL_J1125.9+2005_daily_bin775.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) = 6573.20107798
delta logL = -0.000479905636894

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6573.20059893
delta logL = -8.49571733852e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12542E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2808       1.0000          .0000       10.000    
     3 'Normalizat'    1.0842       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84651       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=   6573.201     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      243 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    311.37        .18142E-02** at limit **
   2  Index         2.3314        7.7325        .50000       -.48504E-04
   3  Normalizat    1.0842        .21475E-01    .23338E-03    .20654E-04
   4  Prefactor     .84650        .22115E-01    .26732E-03   -.43378E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100021
  Index      = 2.33137
  Normalizat = 1.0842
  Prefactor  = 0.846501
 **********
 **   18 **HESSE 
 **********

 FCN=   6573.201     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      272 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    1179.2        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3314        8.7189        .50000       -.56300    
   3  Normalizat    1.0842        .47448E-01    .93352E-05   -.90261    
   4  Prefactor     .84650        .48862E-01    .10693E-04   -.98036    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.5557e-09
Minuit parameter uncertainties:
  1  0.0101183
  2  42.8222
  3  0.0474498
  4  0.0488641
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/782900': 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) = 6573.2005972
delta logL = 8.77033016877e-07

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  1.012e-02  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.331e+00  4.282e+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:  8.465e-01  4.886e-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:  1.084e+00  4.745e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/782900/cmap_HighResolution_440208001_440467201_4FGL_J1125.9+2005_daily_bin775.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.31e-03', job_status='DONE', photon_flux_upper_limit='6.95e-08', time_completed='2021-09-03 20:46:56.444013', job_id='782900', GAL2='0.85', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1630727216.44', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='8.77e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='775' AND source_name='4FGL J1125.9+2005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 20:46:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0154>
Subject: Job 782900: <4FGL_J1125.9+2005_daily_bin775> in cluster <slac> Done

Job <4FGL_J1125.9+2005_daily_bin775> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Fri Sep  3 20:31:24 2021
Job was executed on host(s) <bullet0154>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 20:31:35 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:31:35 2021
Terminated at Fri Sep  3 20:46:57 2021
Results reported at Fri Sep  3 20:46:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1125.9+2005_daily_bin775 171.491 20.0912 440208001 440467201 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 :                                   743.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             304.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   921 sec.
    Turnaround time :                            933 sec.

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

