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


Performing analysis on: 4FGL_J1125.9+2005_daily_bin1012
RA = 171.491, Dec = 20.0912
tmin = 501638401, tmax = 501897601
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='784408', job_status='RUN', time_executed='2021-09-03 20:40:05.168298', time_epoch_executed='1630726805.17' WHERE source_name='4FGL J1125.9+2005' and cadence='daily' and bin_id='1012'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/784408

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/784408/ft1_4FGL_J1125.9+2005_daily_bin1012.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/784408/ft2_4FGL_J1125.9+2005_daily_bin1012.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/784408/ft1_4FGL_J1125.9+2005_daily_bin1012.fits outfile=/scratch/kocevski/784408/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin1012.fits ra=171.491 dec=20.0912 rad=12.0 tmin=501638401.0 tmax=501897601.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.58
user 3.31
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/784408/ft1_filtered_4FGL_J1125.9+2005_daily_bin1012.fits evtable="EVENTS" scfile=/scratch/kocevski/784408/ft2_4FGL_J1125.9+2005_daily_bin1012.fits sctable="SC_DATA" expcube=/scratch/kocevski/784408/ltcube_501638401_501897601_4FGL_J1125.9+2005_daily_bin1012.fits outfile=/scratch/kocevski/784408/expmap_501638401_501897601_4FGL_J1125.9+2005_daily_bin1012.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/784408/ltcube_501638401_501897601_4FGL_J1125.9+2005_daily_bin1012.fits
.....................!
real 192.39
user 187.37
sys 4.55

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/784408/ft1_filtered_4FGL_J1125.9+2005_daily_bin1012.fits scfile=/scratch/kocevski/784408/ft2_4FGL_J1125.9+2005_daily_bin1012.fits outfile=/scratch/kocevski/784408/cmap_501638401_501897601_4FGL_J1125.9+2005_daily_bin1012.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 1.92
user 0.40
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/784408/ft1_filtered_4FGL_J1125.9+2005_daily_bin1012.fits scfile=/scratch/kocevski/784408/ft2_4FGL_J1125.9+2005_daily_bin1012.fits outfile=/scratch/kocevski/784408/cmap_HighResolution_501638401_501897601_4FGL_J1125.9+2005_daily_bin1012.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 1.79
user 0.41
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.1806       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10771E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10302E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.5340       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.9288       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.1732       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    8.7349       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    32.097       1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.350       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.0222       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    5.3844       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .94530       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.6306       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0905       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .79895       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=   5692.300     FROM MIGRAD    STATUS=CONVERGED    572 CALLS     2506 TOTAL
                     EDM=   .73E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.1813        6.8985       -.82774E-07    .32296E-04
   2  Prefactor     .10000E-03    .79608        .78262E-08** at limit **
   3  Prefactor     .10000E-03    4.3701        .34187E-05** at limit **
   4  Prefactor     .10000E-03    9.3175       -.39774E-05** at limit **
   5  Prefactor     .10000E-03    7.5851        .38516E-05** at limit **
   6  Prefactor     .10000E-03    4.3768        .31060E-05** at limit **
   7  Prefactor     .10000E-03    4.7178        .13367E-05** at limit **
   8  norm          1.5338        1.3224        .21965E-08   -.27811E-04
   9  Prefactor     1.9285        1.8818       -.73665E-07   -.10665E-03
  10  Prefactor     1.1745        7.3457       -.42484E-06   -.30762E-04
  11  norm          .10000E-03    4.0933       -.42757E-05** at limit **
  12  norm          8.7307        9.8665        .58810E-06    .27818E-04
  13  Prefactor     .10000E-03    3.5762        .50439E-06** at limit **
  14  Prefactor     .10000E-03    5.0226       -.52495E-05** at limit **
  15  Prefactor     32.089        29.409       -.84927E-05    .23260E-04
  16  Prefactor     15.347        10.156        .58025E-06    .92168E-04
  17  Prefactor     2.9839        24.598       -.71197E-05   -.73108E-05
  18  Prefactor     .10000E-03    15.768        .15849E-05** at limit **
  19  Prefactor     .10000E-03    .57020        .29390E-07** at limit **
  20  norm          5.3837        2.0952        .95016E-07    .13804E-03
  21  Prefactor     .94502        1.0659        .72822E-07   -.58253E-03
  22  Prefactor     2.6288        4.0824        .13132E-05    .91582E-04
  23  Prefactor     .10000E-03    1.5826       -.32924E-06** at limit **
  24  Normalizat    1.0910        .17840        .86188E-06    .20116E-04
  25  Prefactor     .79857        .17786        .11536E-06    .55145E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.18129
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.53379
  Prefactor  = 1.92852
  Prefactor  = 1.1745
  norm       = 0.0001
  norm       = 8.7307
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.0892
  Prefactor  = 15.3471
  Prefactor  = 2.98393
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.38375
  Prefactor  = 0.945025
  Prefactor  = 2.62882
  Prefactor  = 0.0001
  Normalizat = 1.09096
  Prefactor  = 0.798571
 **********
 **   18 **HESSE 
 **********

 FCN=   5692.300     FROM HESSE     STATUS=OK           429 CALLS     2935 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.1813        6.8995        .14969E-03   -1.5172    
   2  Prefactor     .10000E-03    .80664        .65683E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.4312        .15362E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.6617        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.6909        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.3878        .15405E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.7397        .16001E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.5338        1.3122        .76624E-04   -1.5460    
   9  Prefactor     1.9285        1.8760        .98649E-04   -1.5430    
  10  Prefactor     1.1745        7.4137        .38989E-03   -1.5491    
  11  norm          .10000E-03    4.0864        .14872E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          8.7307        9.8895        .13562E-03   -1.5117    
  13  Prefactor     .10000E-03    3.5820        .13931E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.0364        .16522E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     32.089        29.389        .70726E-04   -1.4574    
  16  Prefactor     15.347        10.160        .10223E-03   -1.4924    
  17  Prefactor     2.9839        24.536        .23344E-03   -1.5362    
  18  Prefactor     .10000E-03    16.090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    .57492        .55541E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          5.3837        2.0907        .32291E-03   -1.5244    
  21  Prefactor     .94502        13.125        .25942E-02   -1.5514    
  22  Prefactor     2.6288        4.0263        .17636E-03   -1.5384    
  23  Prefactor     .10000E-03    2.8756        .18140E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0910        .20592        .21884E-03   -.90043    
  25  Prefactor     .79857        .20547        .26684E-03   -.99781    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.67203e-09
Minuit parameter uncertainties:
  1  6.90031
  2  1.09455e-06
  3  1.92683e-05
  4  8.70409e-06
  5  8.63094e-06
  6  5.04101e-06
  7  3.08672e-06
  8  1.31224
  9  1.87604
  10  5.90248
  11  1.50958e-05
  12  9.89135
  13  1.16421e-06
  14  3.32544e-06
  15  29.4019
  16  10.161
  17  17.1223
  18  7.35621e-05
  19  2.50565e-06
  20  2.09068
  21  7.04514
  22  4.0267
  23  5.11193e-05
  24  0.206074
  25  0.205664
Done.

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

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  1.164e-06  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.242e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  1.355e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
600    Prefactor:  7.986e-01  2.057e-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.091e+00  2.061e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/784408/likelihoodResults_501638401_501897601_4FGL_J1125.9+2005_daily_bin1012.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) = 5692.3013111
delta logL = -0.00132521515661

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5692.29998577
delta logL = 1.1736756278e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2251       1.0000          .0000       10.000    
     3 'Normalizat'    1.0910       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79858       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=   5692.300     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      236 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10335E-03    3.0641        .14086E-01** at limit **
   2  Index         2.0711        6.8996        .50000        .25355E-04
   3  Normalizat    1.0910        .36311E-02    .21884E-03   -.13871E-04
   4  Prefactor     .79857        .38663E-02    .26684E-03   -.33232E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010335
  Index      = 2.07114
  Normalizat = 1.09096
  Prefactor  = 0.79857
 **********
 **   18 **HESSE 
 **********

 FCN=   5692.300     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      265 TOTAL
                     EDM=   .98E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10335E-03    118.78        .14635E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0711        5.6546        .50000       -.62583    
   3  Normalizat    1.0910        .23349E-01    .87534E-05   -.90043    
   4  Prefactor     .79857        .24859E-01    .10674E-04   -.99781    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.82082e-08
Minuit parameter uncertainties:
  1  0.0399747
  2  772.714
  3  0.0233492
  4  0.0248595
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/784408': 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) = 5692.29998499
delta logL = 9.00456143427e-07

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  1.033e-04  3.997e-02  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.071e+00  7.727e+02  0.000e+00  1.000e+01 (-1.000e+00)
316        Scale:  1.355e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
600    Prefactor:  7.986e-01  2.486e-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.091e+00  2.335e-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/784408/cmap_HighResolution_501638401_501897601_4FGL_J1125.9+2005_daily_bin1012.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.67e-03', job_status='DONE', photon_flux_upper_limit='4.81e-08', time_completed='2021-09-03 20:51:45.342957', job_id='784408', GAL2='0.80', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1630727505.34', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='9.00e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='1012' AND source_name='4FGL J1125.9+2005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 20:51:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 784408: <4FGL_J1125.9+2005_daily_bin1012> in cluster <slac> Done

Job <4FGL_J1125.9+2005_daily_bin1012> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep  3 20:36:07 2021
Job was executed on host(s) <bullet0206>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 20:36:29 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:36:29 2021
Terminated at Fri Sep  3 20:51:45 2021
Results reported at Fri Sep  3 20:51:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1125.9+2005_daily_bin1012 171.491 20.0912 501638401 501897601 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 :                                   688.24 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             264.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   916 sec.
    Turnaround time :                            938 sec.

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

