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


Performing analysis on: 4FGL_J1125.9+2005_daily_bin569
RA = 171.491, Dec = 20.0912
tmin = 386812801, tmax = 387072001
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='781599', job_status='RUN', time_executed='2021-09-03 20:27:47.523115', time_epoch_executed='1630726067.52' WHERE source_name='4FGL J1125.9+2005' and cadence='daily' and bin_id='569'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/781599

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/781599/ft1_4FGL_J1125.9+2005_daily_bin569.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/781599/ft2_4FGL_J1125.9+2005_daily_bin569.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/781599/ft1_4FGL_J1125.9+2005_daily_bin569.fits outfile=/scratch/kocevski/781599/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin569.fits ra=171.491 dec=20.0912 rad=12.0 tmin=386812801.0 tmax=387072001.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.49
user 3.26
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/781599/ft1_filtered_4FGL_J1125.9+2005_daily_bin569.fits evtable="EVENTS" scfile=/scratch/kocevski/781599/ft2_4FGL_J1125.9+2005_daily_bin569.fits sctable="SC_DATA" expcube=/scratch/kocevski/781599/ltcube_386812801_387072001_4FGL_J1125.9+2005_daily_bin569.fits outfile=/scratch/kocevski/781599/expmap_386812801_387072001_4FGL_J1125.9+2005_daily_bin569.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/781599/ltcube_386812801_387072001_4FGL_J1125.9+2005_daily_bin569.fits
.....................!
real 193.77
user 188.23
sys 4.80

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/781599/ft1_filtered_4FGL_J1125.9+2005_daily_bin569.fits scfile=/scratch/kocevski/781599/ft2_4FGL_J1125.9+2005_daily_bin569.fits outfile=/scratch/kocevski/781599/cmap_386812801_387072001_4FGL_J1125.9+2005_daily_bin569.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.58
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/781599/ft1_filtered_4FGL_J1125.9+2005_daily_bin569.fits scfile=/scratch/kocevski/781599/ft2_4FGL_J1125.9+2005_daily_bin569.fits outfile=/scratch/kocevski/781599/cmap_HighResolution_386812801_387072001_4FGL_J1125.9+2005_daily_bin569.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.58
user 0.42
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .20766E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .18548E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.204       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10421E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.6280       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .42766       1.0000         .10000E-03   10000.    
    11 'norm      '    3.3879       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.9155       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10310E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11650E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    32.662       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.0294       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.8587       1.0000         .10000E-03   10000.    
    20 'norm      '    5.7215       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .45428       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .24189       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0713       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .66864       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=   4878.943     FROM MIGRAD    STATUS=CONVERGED   1053 CALLS     3435 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.9557        .13495E-02** at limit **
   2  Prefactor     .10000E-03    1.0577        .13761E-03** at limit **
   3  Prefactor     .10000E-03    8.9858        .50328E-01** at limit **
   4  Prefactor     .10000E-03    11.517        .36285E-03** at limit **
   5  Prefactor     10.213        7.6121        .12544E-03   -.12418E-03
   6  Prefactor     .10000E-03    23.123        .36285E-03** at limit **
   7  Prefactor     .10000E-03    22.379        .36285E-03** at limit **
   8  norm          .10000E-03    .39260        .42488E-03** at limit **
   9  Prefactor     2.6283        3.1484        .12703E-03    .50387E-04
  10  Prefactor     .43996        11.887        .29998E-02    .30540E-03
  11  norm          3.3824        12.353        .21982E-03   -.19187E-04
  12  norm          .10000E-03    15.110        .36285E-03** at limit **
  13  Prefactor     9.9198        8.5999        .12725E-03   -.29482E-05
  14  Prefactor     .10000E-03    5.9582        .16634E-02** at limit **
  15  Prefactor     .10000E-03    16.476        .18142E-02** at limit **
  16  Prefactor     .10000E-03    3.8321        .13341E-02** at limit **
  17  Prefactor     32.630        22.289        .70113E-04   -.12388E-03
  18  Prefactor     3.0288        11.054        .11657E-02   -.21339E-03
  19  Prefactor     2.8592        1.8354        .71652E-04   -.14296E-03
  20  norm          5.7210        2.0960        .58190E-04   -.97687E-06
  21  Prefactor     .30323        163.25        .46962E-02    .65638E-04
  22  Prefactor     .10000E-03    1.6763        .87731E-03** at limit **
  23  Prefactor     .23957        6.3756        .16574E-02   -.56634E-03
  24  Normalizat    1.0715        .20832        .20941E-03   -.56158E-03
  25  Prefactor     .66865        .20766        .27126E-03   -.20461E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 10.2127
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.62829
  Prefactor  = 0.439958
  norm       = 3.38237
  norm       = 0.0001
  Prefactor  = 9.91983
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.6303
  Prefactor  = 3.0288
  Prefactor  = 2.85923
  norm       = 5.72105
  Prefactor  = 0.30323
  Prefactor  = 0.0001
  Prefactor  = 0.239565
  Normalizat = 1.07149
  Prefactor  = 0.668653
 **********
 **   18 **HESSE 
 **********

 FCN=   4878.943     FROM HESSE     STATUS=OK           417 CALLS     3852 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.9566        .26989E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.0577        .27521E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.3159        .52895E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    11.518        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.213        7.6112        .25088E-04   -1.5069    
   6  Prefactor     .10000E-03    23.124        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    22.380        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .39261        .84977E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.6283        3.1458        .50811E-05   -1.5384    
  10  Prefactor     .43996        11.883        .11999E-03   -1.5575    
  11  norm          3.3824        12.342        .87928E-05   -1.5340    
  12  norm          .10000E-03    15.111        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.9198        8.5947        .50902E-05   -1.5078    
  14  Prefactor     .10000E-03    5.9586        .33268E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    16.477        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.8322        .26681E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     32.630        22.281        .28045E-05   -1.4565    
  18  Prefactor     3.0288        11.040        .46629E-04   -1.5360    
  19  Prefactor     2.8592        1.8351        .28661E-05   -1.5370    
  20  norm          5.7210        2.0958        .23276E-05   -1.5230    
  21  Prefactor     .30323        167.87        .18785E-03   -1.5598    
  22  Prefactor     .10000E-03    1.6765        .17546E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .23957        6.3614        .66296E-04   -1.5610    
  24  Normalizat    1.0715        .20825        .41881E-04   -.90672    
  25  Prefactor     .66865        .20763        .10850E-04   -1.0477    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.97495e-09
Minuit parameter uncertainties:
  1  6.40073e-06
  2  4.03837e-06
  3  0.00017868
  4  7.77043e-05
  5  7.61193
  6  0.000114211
  7  9.389e-05
  8  1.15283e-06
  9  3.14595
  10  4.57338
  11  12.3514
  12  6.36993e-05
  13  8.59572
  14  6.22839e-07
  15  3.96073e-06
  16  2.30109e-06
  17  22.2865
  18  11.0472
  19  1.83518
  20  2.09582
  21  14.3073
  22  4.14997e-06
  23  2.46877
  24  0.208405
  25  0.20787
Done.

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

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  9.920e+00  8.596e+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:  6.687e-01  2.079e-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.071e+00  2.084e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.54
Ra Dec: 171.491 20.091
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 2.75e-08 +/- 2.38e-08
Energy Flux (Fixed Index): 1.15e-05 +/- 9.95e-06

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) = 4878.84613614
delta logL = 0.0967023802923

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4878.84246688
delta logL = 0.100371641284

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.744       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9554       1.0000          .0000       10.000    
     3 'Normalizat'    1.0794       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66304       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=   4878.842     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      313 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.746        12.274        .56104E-03    .16515E-04
   2  Index         1.9553        .62659        .82576E-02    .18105E-03
   3  Normalizat    1.0795        .19663        .20872E-03   -.98588E-05
   4  Prefactor     .66299        .20550        .27232E-03   -.21208E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.7456
  Index      = 1.95535
  Normalizat = 1.07949
  Prefactor  = 0.662992
 **********
 **   18 **HESSE 
 **********

 FCN=   4878.842     FROM HESSE     STATUS=OK            25 CALLS      338 TOTAL
                     EDM=   .25E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.746        12.085        .22442E-04   -1.4994    
   2  Index         1.9553        .61705        .16515E-02   -.65471    
   3  Normalizat    1.0795        .19676        .83488E-05   -.90413    
   4  Prefactor     .66299        .20566        .10893E-04   -1.0500    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.51183e-12
Minuit parameter uncertainties:
  1  12.0872
  2  0.619566
  3  0.196896
  4  0.205895
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/781599': 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) = 4878.84246681
delta logL = 0.100371707377

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  1.275e+01  1.209e+01  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  1.955e+00  6.196e-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:  6.630e-01  2.059e-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.079e+00  1.969e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.74
Ra Dec: 171.491 20.091
Photon Index (Free Index): 1.96 +/- 0.62
Photon Flux (Free Index): 2.18e-08 +/- 2.37e-08
Energy Flux (Free Index): 1.68e-05 +/- 2.22e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/781599/cmap_HighResolution_386812801_387072001_4FGL_J1125.9+2005_daily_bin569.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.75e-08', energy_flux2='1.68e-05', photon_flux_error='2.38e-08', dlogl='1.00e-01', energy_flux='1.15e-05', photon_flux2='2.18e-08', job_status='DONE', time_completed='2021-09-03 20:38:39.669633', photon_index_error2='0.62', photon_index2='1.96', ts='4.54', fit_tolerance='1e-08', GAL='0.67', photon_index_error='0.00', energy_flux_error2='2.22e-05', EG='1.07', time_epoch_completed='1630726719.67', return_code='0', job_id='781599', GAL2='0.66', EG2='1.08', return_code2='0', energy_flux_error='9.95e-06', photon_flux_error2='2.37e-08', ts2='4.74', photon_index='2.24' WHERE bin_id='569' AND source_name='4FGL J1125.9+2005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 20:38:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 781599: <4FGL_J1125.9+2005_daily_bin569> in cluster <slac> Done

Job <4FGL_J1125.9+2005_daily_bin569> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep  3 20:26:27 2021
Job was executed on host(s) <bullet0216>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 20:27:09 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:27:09 2021
Terminated at Fri Sep  3 20:38:40 2021
Results reported at Fri Sep  3 20:38:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1125.9+2005_daily_bin569 171.491 20.0912 386812801 387072001 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 :                                   648.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             322.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   690 sec.
    Turnaround time :                            733 sec.

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

