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


Performing analysis on: 4FGL_J1125.9+2005_daily_bin1597
RA = 171.491, Dec = 20.0912
tmin = 653270401, tmax = 653529601
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='545088', job_status='RUN', time_executed='2021-09-17 00:57:58.907702', time_epoch_executed='1631865478.91' WHERE source_name='4FGL J1125.9+2005' and cadence='daily' and bin_id='1597'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/545088

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/545088/ft1_4FGL_J1125.9+2005_daily_bin1597.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/545088/ft2_4FGL_J1125.9+2005_daily_bin1597.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/545088/ft1_4FGL_J1125.9+2005_daily_bin1597.fits outfile=/scratch/kocevski/545088/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin1597.fits ra=171.491 dec=20.0912 rad=12.0 tmin=653270401.0 tmax=653529601.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.31
user 3.09
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/545088/ft1_filtered_4FGL_J1125.9+2005_daily_bin1597.fits" evtable="EVENTS" scfile=/scratch/kocevski/545088/ft2_4FGL_J1125.9+2005_daily_bin1597.fits sctable="SC_DATA" outfile=/scratch/kocevski/545088/ltcube_653270401_653529601_4FGL_J1125.9+2005_daily_bin1597.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/545088/ft2_4FGL_J1125.9+2005_daily_bin1597.fits
.....................!
real 12.45
user 12.10
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/545088/ft1_filtered_4FGL_J1125.9+2005_daily_bin1597.fits evtable="EVENTS" scfile=/scratch/kocevski/545088/ft2_4FGL_J1125.9+2005_daily_bin1597.fits sctable="SC_DATA" expcube=/scratch/kocevski/545088/ltcube_653270401_653529601_4FGL_J1125.9+2005_daily_bin1597.fits outfile=/scratch/kocevski/545088/expmap_653270401_653529601_4FGL_J1125.9+2005_daily_bin1597.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/545088/ltcube_653270401_653529601_4FGL_J1125.9+2005_daily_bin1597.fits
.....................!
real 190.36
user 185.62
sys 4.39

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/545088/ft1_filtered_4FGL_J1125.9+2005_daily_bin1597.fits scfile=/scratch/kocevski/545088/ft2_4FGL_J1125.9+2005_daily_bin1597.fits outfile=/scratch/kocevski/545088/cmap_653270401_653529601_4FGL_J1125.9+2005_daily_bin1597.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.55
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/545088/ft1_filtered_4FGL_J1125.9+2005_daily_bin1597.fits scfile=/scratch/kocevski/545088/ft2_4FGL_J1125.9+2005_daily_bin1597.fits outfile=/scratch/kocevski/545088/cmap_HighResolution_653270401_653529601_4FGL_J1125.9+2005_daily_bin1597.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.54
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.133       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.5001       1.0000         .10000E-03   10000.    
     4 'Prefactor '    42.316       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.5971       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    20.558       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    16.272       1.0000         .10000E-03   10000.    
    12 'norm      '    13.224       1.0000         .10000E-03   10000.    
    13 'Prefactor '    22.188       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .33953E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    182.75       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    67.751       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    28.385       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .52769E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    25 'Prefactor '    .92758       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=   635.1636     FROM MIGRAD    STATUS=CONVERGED    559 CALLS     2882 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.837       -.34489E-06** at limit **
   2  Prefactor     12.133        8.5903       -.19831E-07    .69590E-04
   3  Prefactor     3.5075        27.824        .75539E-07    .44655E-04
   4  Prefactor     42.321        33.606        .41225E-07    .62367E-04
   5  Prefactor     .10000E-03    19.542        .46672E-06** at limit **
   6  Prefactor     4.5982        52.762       -.73979E-06    .15959E-04
   7  Prefactor     .10000E-03    33.811       -.40210E-06** at limit **
   8  norm          20.554        9.3694        .18463E-06    .15114E-03
   9  Prefactor     .10000E-03    4.5184       -.25145E-07** at limit **
  10  Prefactor     .10000E-03    12.144        .54413E-08** at limit **
  11  norm          16.335        51.468       -.15985E-05   -.16492E-04
  12  norm          13.223        33.458        .11078E-05    .67417E-04
  13  Prefactor     22.198        31.810        .53894E-07    .60840E-05
  14  Prefactor     .10000E-03    240.33       -.15755E-04** at limit **
  15  Prefactor     .10000E-03    51.554       -.92414E-07** at limit **
  16  Prefactor     182.86        85.212       -.34692E-06    .58459E-04
  17  Prefactor     .10000E-03    35.837        .31646E-06** at limit **
  18  Prefactor     67.748        51.191       -.18867E-05   -.24819E-03
  19  Prefactor     .10000E-03    2.6305        .54826E-07** at limit **
  20  norm          28.384        9.7729        .65344E-07    .41993E-04
  21  Prefactor     .10000E-03    35.069        .27443E-06** at limit **
  22  Prefactor     .10000E-03    96.325        .21210E-04** at limit **
  23  Prefactor     .10000E-03    11.363        .66052E-06** at limit **
  24  Normalizat    .10000E-01    .16330        .63804E-06** at limit **
  25  Prefactor     .92738        .31346        .13629E-05   -.15838E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 12.1326
  Prefactor  = 3.50748
  Prefactor  = 42.3208
  Prefactor  = 0.0001
  Prefactor  = 4.59816
  Prefactor  = 0.0001
  norm       = 20.5536
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 16.3355
  norm       = 13.2231
  Prefactor  = 22.1981
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 182.862
  Prefactor  = 0.0001
  Prefactor  = 67.7483
  Prefactor  = 0.0001
  norm       = 28.3841
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.927381
 **********
 **   18 **HESSE 
 **********

 FCN=   635.1636     FROM HESSE     STATUS=OK           419 CALLS     3301 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.870        .10972E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     12.133        8.5907        .60287E-04   -1.5011    
   3  Prefactor     3.5075        27.708        .21611E-03   -1.5333    
   4  Prefactor     42.321        33.613        .61625E-04   -1.4406    
   5  Prefactor     .10000E-03    19.555        .10890E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.5982        52.999        .18773E-03   -1.5279    
   7  Prefactor     .10000E-03    33.846        .14326E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          20.554        9.3752        .48339E-04   -1.4801    
   9  Prefactor     .10000E-03    4.5192        .52320E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    12.145        .85818E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          16.335        51.525        .99289E-04   -1.4899    
  12  norm          13.223        33.523        .11015E-03   -1.4981    
  13  Prefactor     22.198        31.813        .85034E-04   -1.4765    
  14  Prefactor     .10000E-03    234.28        .19690E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    51.553        .17694E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     182.86        85.155        .14932E-03   -1.2995    
  17  Prefactor     .10000E-03    35.859        .14751E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     67.748        50.042        .48763E-04   -1.4060    
  19  Prefactor     .10000E-03    2.6320        .39932E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          28.384        9.7734        .44709E-04   -1.4642    
  21  Prefactor     .10000E-03    35.076        .14589E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    96.697        .22533E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    11.546        .82797E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .10000E-01    .16503        .60578E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .92738        .30428        .22439E-03   -.95191    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.23708e-10
Minuit parameter uncertainties:
  1  7.25165e-05
  2  8.59155
  3  19.7287
  4  33.628
  5  7.33824e-05
  6  31.2561
  7  9.66481e-05
  8  9.3759
  9  4.30975e-06
  10  1.18133e-06
  11  51.6659
  12  33.5707
  13  31.8371
  14  0.00149197
  15  5.1871e-06
  16  85.2127
  17  0.000119312
  18  50.0729
  19  2.56248e-06
  20  9.77394
  21  3.75217e-05
  22  0.000640919
  23  1.98696e-05
  24  2.84303e-06
  25  0.304836
Done.

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

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  2.220e+01  3.184e+01  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:  9.274e-01  3.048e-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.000e-02  2.843e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.98
Ra Dec: 171.491 20.091
Photon Flux Upper Limit: 3.76e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.87e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/545088/likelihoodResults_653270401_653529601_4FGL_J1125.9+2005_daily_bin1597.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 634.717116353
delta logL = 0.446508949342

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 634.544077681
delta logL = 0.619547621316

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    50.426       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3634       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92273       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=   634.5441     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      211 TOTAL
                     EDM=   .23E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     50.476        58.984        .62423E-05   -.17543E-05
   2  Index         1.3633        .64131        .46404E-04    .88233E-07
   3  Normalizat    .10000E-01    .16592       -.55341E-06** at limit **
   4  Prefactor     .92277        .27190       -.77849E-06   -.11699E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 50.476
  Index      = 1.36332
  Normalizat = 0.01
  Prefactor  = 0.922765
 **********
 **   18 **HESSE 
 **********

 FCN=   634.5441     FROM HESSE     STATUS=OK            31 CALLS      242 TOTAL
                     EDM=   .76E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     50.476        58.906        .28237E-03   -1.4286    
   2  Index         1.3633        .64028        .44782E-02   -.81443    
   3  Normalizat    .10000E-01    .17232        .61559E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .92277        .26315        .22387E-03   -.95350    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.63538e-12
Minuit parameter uncertainties:
  1  58.974
  2  0.644058
  3  7.36255e-07
  4  0.263514
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/545088': 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) = 634.544077074
delta logL = 0.619548228242

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  5.048e+01  5.897e+01  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  1.363e+00  6.441e-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:  9.228e-01  2.635e-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.000e-02  7.363e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.22
Ra Dec: 171.491 20.091
Photon Index (Free Index): 1.36 +/- 0.64
Photon Flux (Free Index): 4.46e-08 +/- 5.51e-08
Energy Flux (Free Index): 2.22e-04 +/- 4.55e-04

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/545088/cmap_HighResolution_653270401_653529601_4FGL_J1125.9+2005_daily_bin1597.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.87e-02', comment='SUCCESS', energy_flux2='2.22e-04', dlogl='6.20e-01', photon_flux2='4.46e-08', job_status='DONE', time_completed='2021-09-17 01:04:03.186643', photon_index_error2='0.64', photon_index2='1.36', ts='0.98', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='3.76e-07', energy_flux_error2='4.55e-04', EG='0.01', time_epoch_completed='1631865843.19', return_code='0', job_id='545088', GAL2='0.92', EG2='0.01', return_code2='0', photon_flux_error2='5.51e-08', ts2='2.22', photon_index='2.24' WHERE bin_id='1597' AND source_name='4FGL J1125.9+2005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 17 01:04:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 545088: <4FGL_J1125.9+2005_daily_bin1597> in cluster <slac> Done

Job <4FGL_J1125.9+2005_daily_bin1597> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 17 00:55:30 2021
Job was executed on host(s) <bullet0223>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 17 00:55:32 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 17 00:55:32 2021
Terminated at Fri Sep 17 01:04:03 2021
Results reported at Fri Sep 17 01:04:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1125.9+2005_daily_bin1597 171.491 20.0912 653270401 653529601 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 :                                   367.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             283.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   511 sec.
    Turnaround time :                            513 sec.

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

