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


Performing analysis on: 4FGL_J1125.9+2005_daily_bin508
RA = 171.491, Dec = 20.0912
tmin = 371001601, tmax = 371260801
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='781508', job_status='RUN', time_executed='2021-09-03 20:29:08.482282', time_epoch_executed='1630726148.48' WHERE source_name='4FGL J1125.9+2005' and cadence='daily' and bin_id='508'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/781508

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/781508/ft1_4FGL_J1125.9+2005_daily_bin508.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/781508/ft2_4FGL_J1125.9+2005_daily_bin508.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/781508/ft1_4FGL_J1125.9+2005_daily_bin508.fits outfile=/scratch/kocevski/781508/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin508.fits ra=171.491 dec=20.0912 rad=12.0 tmin=371001601.0 tmax=371260801.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 6.46
user 6.14
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/781508/ft1_filtered_4FGL_J1125.9+2005_daily_bin508.fits" evtable="EVENTS" scfile=/scratch/kocevski/781508/ft2_4FGL_J1125.9+2005_daily_bin508.fits sctable="SC_DATA" outfile=/scratch/kocevski/781508/ltcube_371001601_371260801_4FGL_J1125.9+2005_daily_bin508.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/781508/ft2_4FGL_J1125.9+2005_daily_bin508.fits
.....................!
real 15.01
user 14.57
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/781508/ft1_filtered_4FGL_J1125.9+2005_daily_bin508.fits evtable="EVENTS" scfile=/scratch/kocevski/781508/ft2_4FGL_J1125.9+2005_daily_bin508.fits sctable="SC_DATA" expcube=/scratch/kocevski/781508/ltcube_371001601_371260801_4FGL_J1125.9+2005_daily_bin508.fits outfile=/scratch/kocevski/781508/expmap_371001601_371260801_4FGL_J1125.9+2005_daily_bin508.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/781508/ltcube_371001601_371260801_4FGL_J1125.9+2005_daily_bin508.fits
.....................!
real 190.84
user 186.15
sys 4.15

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/781508/ft1_filtered_4FGL_J1125.9+2005_daily_bin508.fits scfile=/scratch/kocevski/781508/ft2_4FGL_J1125.9+2005_daily_bin508.fits outfile=/scratch/kocevski/781508/cmap_371001601_371260801_4FGL_J1125.9+2005_daily_bin508.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.60
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/781508/ft1_filtered_4FGL_J1125.9+2005_daily_bin508.fits scfile=/scratch/kocevski/781508/ft2_4FGL_J1125.9+2005_daily_bin508.fits outfile=/scratch/kocevski/781508/cmap_HighResolution_371001601_371260801_4FGL_J1125.9+2005_daily_bin508.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=171.491 yref=20.0912 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.57
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10559E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10730E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.7078       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .49582       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .54122E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    21.170       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.480       1.0000         .10000E-03   10000.    
     8 'norm      '    3.4303       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .14663E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10173E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    23.763       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10163E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10145E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.538       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .53708       1.0000         .10000E-03   10000.    
    20 'norm      '    4.6082       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.9797       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .16604       1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.8427       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .93346       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1462       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=   5636.384     FROM MIGRAD    STATUS=CONVERGED    640 CALLS     3021 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.3576        .15236E-07** at limit **
   2  Prefactor     .10000E-03    1.4443       -.20882E-06** at limit **
   3  Prefactor     7.7035        8.7916       -.51756E-06   -.53878E-03
   4  Prefactor     .49103        18.128        .96173E-05   -.42101E-03
   5  Prefactor     .10222E-03    6.3933       -.27683E-05** at limit **
   6  Prefactor     21.197        15.872        .22801E-05    .70690E-03
   7  Prefactor     11.480        12.615       -.39270E-06    .18641E-04
   8  norm          3.4289        1.8784       -.47181E-09   -.78505E-04
   9  Prefactor     .10001E-03    2.2348       -.58867E-06** at limit **
  10  Prefactor     .10000E-03    4.0269        .86746E-07** at limit **
  11  norm          .10000E-03    20.927        .13535E-06** at limit **
  12  norm          .10000E-03    4.2183       -.32052E-07** at limit **
  13  Prefactor     .10000E-03    11.609       -.50878E-06** at limit **
  14  Prefactor     23.770        22.911       -.55174E-06   -.40095E-03
  15  Prefactor     .10000E-03    10.620       -.27026E-06** at limit **
  16  Prefactor     .10000E-03    34.535       -.29826E-05** at limit **
  17  Prefactor     10.539        29.848       -.32999E-05   -.23073E-03
  18  Prefactor     .10000E-03    9.3698        .18483E-06** at limit **
  19  Prefactor     .53279        2.4754        .11737E-05   -.15915E-04
  20  norm          4.6083        2.3094        .17694E-07   -.17336E-03
  21  Prefactor     5.9741        12.933        .74280E-07   -.17367E-04
  22  Prefactor     .16764        2.3130       -.21873E-06   -.62061E-04
  23  Prefactor     7.8399        4.3999       -.10486E-06   -.18593E-03
  24  Normalizat    .93410        .20872        .33793E-05    .16645E-03
  25  Prefactor     1.1457        .20471       -.29885E-05    .80301E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 7.70348
  Prefactor  = 0.491033
  Prefactor  = 0.000102221
  Prefactor  = 21.1969
  Prefactor  = 11.4796
  norm       = 3.42887
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 23.7705
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 10.5391
  Prefactor  = 0.0001
  Prefactor  = 0.532789
  norm       = 4.60832
  Prefactor  = 5.97405
  Prefactor  = 0.167639
  Prefactor  = 7.83986
  Normalizat = 0.934095
  Prefactor  = 1.14568
 **********
 **   18 **HESSE 
 **********

 FCN=   5636.384     FROM HESSE     STATUS=OK           445 CALLS     3466 TOTAL
                     EDM=   .49E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.3709        .15302E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.9394        .17467E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.7035        8.8234        .14444E-03   -1.5153    
   4  Prefactor     .49103        22.824        .36310E-02   -1.5568    
   5  Prefactor     .10222E-03    8.5910        .62332E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     21.197        16.141        .87053E-04   -1.4787    
   7  Prefactor     11.480        12.514        .11824E-03   -1.5030    
   8  norm          3.4289        1.8710        .71450E-04   -1.5338    
   9  Prefactor     .10001E-03    11.320        .20163E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.0613        .14710E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    21.454        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    4.2257        .15058E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    11.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     23.770        23.021        .82172E-04   -1.4732    
  15  Prefactor     .10000E-03    10.630        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    35.462        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     10.539        28.542        .12343E-03   -1.5059    
  18  Prefactor     .10000E-03    9.4372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .53279        3.2966        .17848E-02   -1.5562    
  20  norm          4.6083        2.3054        .76398E-04   -1.5279    
  21  Prefactor     5.9741        12.919        .16421E-03   -1.5219    
  22  Prefactor     .16764        12.149        .21308E-02   -1.5626    
  23  Prefactor     7.8399        4.3538        .11013E-03   -1.5148    
  24  Normalizat    .93410        .24156        .27116E-03   -.95272    
  25  Prefactor     1.1457        .23756        .25747E-03   -.88020    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.89765e-08
Minuit parameter uncertainties:
  1  1.41762e-05
  2  7.9646e-05
  3  8.82488
  4  6.69744
  5  0.0087384
  6  16.1444
  7  12.5173
  8  1.871
  9  0.000574931
  10  3.69215e-06
  11  5.13649e-05
  12  1.76941e-06
  13  0.000220516
  14  23.0294
  15  0.000100514
  16  0.000763866
  17  28.5794
  18  2.87332e-05
  19  2.65056
  20  2.30547
  21  12.9247
  22  2.85392
  23  4.35398
  24  0.241839
  25  0.237785
Done.

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

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  2.205e-04  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.146e+00  2.378e-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:  9.341e-01  2.418e-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: 8.04e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.14e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/781508/likelihoodResults_371001601_371260801_4FGL_J1125.9+2005_daily_bin508.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) = 5636.38416591
delta logL = -0.000406121132983

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5636.38376024
delta logL = -4.51305822935e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2756       1.0000          .0000       10.000    
     3 'Normalizat'    .93386       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1459       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=   5636.384     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      208 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    172.40        .90712E-02** at limit **
   2  Index         2.3131        8.5641        .50000       -.28066E-04
   3  Normalizat    .93409        .18955        .45333E-01   -.27138E-03
   4  Prefactor     1.1457        .19742        .58223E-01   -.18594E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.31314
  Normalizat = 0.934091
  Prefactor  = 1.14568
 **********
 **   18 **HESSE 
 **********

 FCN=   5636.384     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      237 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     .10000E-03    1112.6        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3131        7.6724        .50000       -.56732    
   3  Normalizat    .93409        .50516E-01    .27116E-03   -.95272    
   4  Prefactor     1.1457        .52761E-01    .25747E-03   -.88020    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.75362e-08
Minuit parameter uncertainties:
  1  0.00126443
  2  39.7129
  3  0.0505187
  4  0.0527635
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/781508': 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) = 5636.38375934
delta logL = 4.45321347797e-07

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  1.264e-03  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.313e+00  3.971e+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.146e+00  5.276e-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:  9.341e-01  5.052e-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/781508/cmap_HighResolution_371001601_371260801_4FGL_J1125.9+2005_daily_bin508.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.14e-03', job_status='DONE', photon_flux_upper_limit='8.04e-08', time_completed='2021-09-03 20:41:23.603704', job_id='781508', GAL2='1.15', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1630726883.6', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='4.45e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='508' AND source_name='4FGL J1125.9+2005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 20:41:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 781508: <4FGL_J1125.9+2005_daily_bin508> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1125.9+2005_daily_bin508 171.491 20.0912 371001601 371260801 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 :                                   731.30 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             279.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   874 sec.
    Turnaround time :                            903 sec.

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

