/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 1 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7487
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1125.9+2005_daily_bin627
RA = 171.491, Dec = 20.0912
tmin = 401846401, tmax = 402105601
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='781721', job_status='RUN', time_executed='2021-09-03 20:27:59.770244', time_epoch_executed='1630726079.77' WHERE source_name='4FGL J1125.9+2005' and cadence='daily' and bin_id='627'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/781721

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/781721/ft1_4FGL_J1125.9+2005_daily_bin627.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/781721/ft2_4FGL_J1125.9+2005_daily_bin627.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/781721/ft1_4FGL_J1125.9+2005_daily_bin627.fits outfile=/scratch/kocevski/781721/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin627.fits ra=171.491 dec=20.0912 rad=12.0 tmin=401846401.0 tmax=402105601.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.57
user 3.26
sys 0.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/781721/ft2_4FGL_J1125.9+2005_daily_bin627.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/781721/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin627.fits evtable="EVENTS" outfile="/scratch/kocevski/781721/ft1_filtered_4FGL_J1125.9+2005_daily_bin627.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.51
user 0.34
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/781721/ft1_filtered_4FGL_J1125.9+2005_daily_bin627.fits evtable="EVENTS" scfile=/scratch/kocevski/781721/ft2_4FGL_J1125.9+2005_daily_bin627.fits sctable="SC_DATA" expcube=/scratch/kocevski/781721/ltcube_401846401_402105601_4FGL_J1125.9+2005_daily_bin627.fits outfile=/scratch/kocevski/781721/expmap_401846401_402105601_4FGL_J1125.9+2005_daily_bin627.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/781721/ltcube_401846401_402105601_4FGL_J1125.9+2005_daily_bin627.fits
.....................!
real 193.31
user 187.76
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/781721/ft1_filtered_4FGL_J1125.9+2005_daily_bin627.fits scfile=/scratch/kocevski/781721/ft2_4FGL_J1125.9+2005_daily_bin627.fits outfile=/scratch/kocevski/781721/cmap_401846401_402105601_4FGL_J1125.9+2005_daily_bin627.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.41
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/781721/ft1_filtered_4FGL_J1125.9+2005_daily_bin627.fits scfile=/scratch/kocevski/781721/ft2_4FGL_J1125.9+2005_daily_bin627.fits outfile=/scratch/kocevski/781721/cmap_HighResolution_401846401_402105601_4FGL_J1125.9+2005_daily_bin627.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.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .32476E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.9610       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.698       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.0740       1.0000         .10000E-03   10000.    
     8 'norm      '    5.4558       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11987       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.1449       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.7231       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.5337       1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.810       1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.021       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.670       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.2657       1.0000         .10000E-03   10000.    
    20 'norm      '    1.9314       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.1815       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.4907       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .61480       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2298       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=   5016.221     FROM MIGRAD    STATUS=CONVERGED    577 CALLS     2927 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.9489        .10310E-06** at limit **
   2  Prefactor     .10000E-03    1.0193        .99618E-07** at limit **
   3  Prefactor     2.9585        8.5639        .34059E-06    .69831E-04
   4  Prefactor     .10000E-03    3.0106       -.34945E-07** at limit **
   5  Prefactor     12.700        9.2728        .11476E-07   -.58811E-04
   6  Prefactor     .10000E-03    3.5451        .11381E-06** at limit **
   7  Prefactor     5.0708        12.468        .31333E-06    .23667E-04
   8  norm          5.4556        2.0743        .18326E-07   -.25815E-04
   9  Prefactor     .10947        1.9400       -.18960E-05    .55462E-03
  10  Prefactor     5.1445        5.5128        .62131E-07   -.26795E-04
  11  norm          .10000E-03    4.2110       -.17640E-06** at limit **
  12  norm          .10000E-03    3.3287       -.50158E-07** at limit **
  13  Prefactor     8.7227        7.3437       -.25017E-08    .27083E-05
  14  Prefactor     .10000E-03    11.069        .67343E-08** at limit **
  15  Prefactor     7.5239        29.695        .12902E-05   -.11277E-03
  16  Prefactor     14.810        12.363        .91941E-07   -.29688E-04
  17  Prefactor     15.015        21.189        .50586E-06   -.14165E-03
  18  Prefactor     10.669        10.521       -.14692E-07    .95123E-05
  19  Prefactor     3.2657        1.9322        .10743E-07   -.12849E-03
  20  norm          1.9315        1.6066       -.22146E-07   -.19879E-03
  21  Prefactor     2.1782        17.479        .92540E-05    .12427E-03
  22  Prefactor     .10000E-03    1.1021        .38740E-07** at limit **
  23  Prefactor     2.4901        2.6852        .38753E-07    .32063E-05
  24  Normalizat    .61477        .19334        .43014E-06   -.62768E-05
  25  Prefactor     1.2300        .19606       -.12021E-05   -.89448E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.95847
  Prefactor  = 0.0001
  Prefactor  = 12.6997
  Prefactor  = 0.0001
  Prefactor  = 5.07083
  norm       = 5.45563
  Prefactor  = 0.109475
  Prefactor  = 5.14454
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 8.72274
  Prefactor  = 0.0001
  Prefactor  = 7.52387
  Prefactor  = 14.8099
  Prefactor  = 15.0147
  Prefactor  = 10.6685
  Prefactor  = 3.26575
  norm       = 1.93154
  Prefactor  = 2.1782
  Prefactor  = 0.0001
  Prefactor  = 2.49005
  Normalizat = 0.614774
  Prefactor  = 1.23001
 **********
 **   18 **HESSE 
 **********

 FCN=   5016.221     FROM HESSE     STATUS=OK           445 CALLS     3372 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.9686        .11882E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.3377        .25792E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.9585        8.5520        .23599E-03   -1.5364    
   4  Prefactor     .10000E-03    3.0192        .11995E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     12.700        9.2615        .11241E-03   -1.4995    
   6  Prefactor     .10000E-03    3.5566        .13031E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.0708        12.462        .17850E-03   -1.5258    
   8  norm          5.4556        2.0733        .59071E-04   -1.5241    
   9  Prefactor     .10947        6.6069        .15089E-02   -1.5642    
  10  Prefactor     5.1445        5.5083        .16650E-03   -1.5254    
  11  norm          .10000E-03    4.2251        .14201E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    3.3365        .12621E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.7227        7.3450        .13572E-03   -1.5117    
  14  Prefactor     .10000E-03    11.118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.5239        29.993        .14611E-03   -1.5159    
  16  Prefactor     14.810        12.367        .10408E-03   -1.4938    
  17  Prefactor     15.015        21.300        .10334E-03   -1.4933    
  18  Prefactor     10.669        10.527        .12266E-03   -1.5055    
  19  Prefactor     3.2657        1.9278        .34780E-03   -1.5347    
  20  norm          1.9315        1.5935        .77836E-04   -1.5430    
  21  Prefactor     2.1782        19.401        .13936E-02   -1.5413    
  22  Prefactor     .10000E-03    1.1088        .72580E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     2.4901        2.6734        .11528E-03   -1.5392    
  24  Normalizat    .61477        .22543        .28210E-03   -1.0736    
  25  Prefactor     1.2300        .23035        .22875E-03   -.85413    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52589e-09
Minuit parameter uncertainties:
  1  1.16471e-05
  2  2.34999e-06
  3  8.55551
  4  2.2868e-05
  5  9.26251
  6  1.99921e-05
  7  12.4681
  8  2.0733
  9  1.70034
  10  5.50884
  11  5.53525e-08
  12  1.75842e-05
  13  7.34578
  14  1.14795e-05
  15  30.0534
  16  12.3691
  17  21.3103
  18  10.5292
  19  1.92788
  20  1.59353
  21  13.0067
  22  2.48836e-06
  23  2.67353
  24  0.225764
  25  0.230536
Done.

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

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  8.723e+00  7.346e+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.230e+00  2.305e-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.148e-01  2.258e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.12
Ra Dec: 171.491 20.091
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 2.42e-08 +/- 2.04e-08
Energy Flux (Fixed Index): 1.01e-05 +/- 8.50e-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) = 5015.93439618
delta logL = 0.286893458087

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5015.83054399
delta logL = 0.390745640068

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.099       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7104       1.0000          .0000       10.000    
     3 'Normalizat'    .62708       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2209       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.

 FCN=   5015.831     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      214 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.106        457.85        .27669E-02   -.21206E-04
   2  Index         1.7105        5.1109        .22157        .58384E-05
   3  Normalizat    .62705        .18638        .63154E-01    .69054E-05
   4  Prefactor     1.2210        .14088        .51885E-01   -.79211E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.106
  Index      = 1.71052
  Normalizat = 0.627046
  Prefactor  = 1.22096
 **********
 **   18 **HESSE 
 **********

 FCN=   5015.831     FROM HESSE     STATUS=OK            31 CALLS      245 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.106        10.823        .11068E-03   -1.4984    
   2  Index         1.7105        .54216        .82485E-02   -.71802    
   3  Normalizat    .62705        .20346        .27942E-03   -1.0685    
   4  Prefactor     1.2210        .22754        .22939E-03   -.85689    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.03334e-11
Minuit parameter uncertainties:
  1  10.8244
  2  0.544048
  3  0.203702
  4  0.227719
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/781721': 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) = 5015.83054359
delta logL = 0.39074604464

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  1.311e+01  1.082e+01  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  1.711e+00  5.440e-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.221e+00  2.277e-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.270e-01  2.037e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.91
Ra Dec: 171.491 20.091
Photon Index (Free Index): 1.71 +/- 0.54
Photon Flux (Free Index): 1.58e-08 +/- 1.54e-08
Energy Flux (Free Index): 2.50e-05 +/- 3.60e-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/781721/cmap_HighResolution_401846401_402105601_4FGL_J1125.9+2005_daily_bin627.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.42e-08', energy_flux2='2.50e-05', photon_flux_error='2.04e-08', dlogl='3.91e-01', energy_flux='1.01e-05', photon_flux2='1.58e-08', job_status='DONE', time_completed='2021-09-03 20:38:35.573657', photon_index_error2='0.54', photon_index2='1.71', ts='4.12', fit_tolerance='1e-08', GAL='1.23', photon_index_error='0.00', energy_flux_error2='3.60e-05', EG='0.61', time_epoch_completed='1630726715.57', return_code='0', job_id='781721', GAL2='1.22', EG2='0.63', return_code2='0', energy_flux_error='8.50e-06', photon_flux_error2='1.54e-08', ts2='4.91', photon_index='2.24' WHERE bin_id='627' AND source_name='4FGL J1125.9+2005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 20:38:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 781721: <4FGL_J1125.9+2005_daily_bin627> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1125.9+2005_daily_bin627 171.491 20.0912 401846401 402105601 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 :                                   612.01 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             344.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   658 sec.
    Turnaround time :                            722 sec.

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

