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

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


Waiting 5 seconds before starting...
Proceeding.

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

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

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

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

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


Performing analysis on: 4FGL_J1125.9+2005_daily_bin953
RA = 171.491, Dec = 20.0912
tmin = 486345601, tmax = 486604801
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='783177', job_status='RUN', time_executed='2021-09-03 20:32:26.073522', time_epoch_executed='1630726346.07' WHERE source_name='4FGL J1125.9+2005' and cadence='daily' and bin_id='953'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/783177

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/783177/ft1_4FGL_J1125.9+2005_daily_bin953.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/783177/ft2_4FGL_J1125.9+2005_daily_bin953.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/783177/ft1_4FGL_J1125.9+2005_daily_bin953.fits outfile=/scratch/kocevski/783177/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin953.fits ra=171.491 dec=20.0912 rad=12.0 tmin=486345601.0 tmax=486604801.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.66
user 3.41
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/783177/ft2_4FGL_J1125.9+2005_daily_bin953.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/783177/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin953.fits evtable="EVENTS" outfile="/scratch/kocevski/783177/ft1_filtered_4FGL_J1125.9+2005_daily_bin953.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.36
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/783177/ft1_filtered_4FGL_J1125.9+2005_daily_bin953.fits" evtable="EVENTS" scfile=/scratch/kocevski/783177/ft2_4FGL_J1125.9+2005_daily_bin953.fits sctable="SC_DATA" outfile=/scratch/kocevski/783177/ltcube_486345601_486604801_4FGL_J1125.9+2005_daily_bin953.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/783177/ft2_4FGL_J1125.9+2005_daily_bin953.fits
.....................!
real 17.65
user 17.27
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/783177/ft1_filtered_4FGL_J1125.9+2005_daily_bin953.fits evtable="EVENTS" scfile=/scratch/kocevski/783177/ft2_4FGL_J1125.9+2005_daily_bin953.fits sctable="SC_DATA" expcube=/scratch/kocevski/783177/ltcube_486345601_486604801_4FGL_J1125.9+2005_daily_bin953.fits outfile=/scratch/kocevski/783177/expmap_486345601_486604801_4FGL_J1125.9+2005_daily_bin953.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/783177/ltcube_486345601_486604801_4FGL_J1125.9+2005_daily_bin953.fits
.....................!
real 192.88
user 187.71
sys 4.64

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/783177/ft1_filtered_4FGL_J1125.9+2005_daily_bin953.fits scfile=/scratch/kocevski/783177/ft2_4FGL_J1125.9+2005_daily_bin953.fits outfile=/scratch/kocevski/783177/cmap_486345601_486604801_4FGL_J1125.9+2005_daily_bin953.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=171.491 yref=20.0912 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.58
user 0.40
sys 0.15

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

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

This is gtbin version HEAD
real 0.58
user 0.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.2762       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    20.749       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .19166E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.5452       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.7442       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.5507       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10493E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.3797       1.0000         .10000E-03   10000.    
    11 'norm      '    .14519E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    30.137       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.6582       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.6241       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.3791       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.4792       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.1009       1.0000         .10000E-03   10000.    
    20 'norm      '    1.0039       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.9910       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.4785       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.1082       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .64546       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.3544       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=   6010.555     FROM MIGRAD    STATUS=CONVERGED    607 CALLS     2598 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.2647        9.5290        .48707E-05   -.11674E-03
   2  Prefactor     .10000E-03    1.8527       -.20455E-06** at limit **
   3  Prefactor     20.743        9.3719        .18722E-07   -.12531E-03
   4  Prefactor     .10121E-03    7.4294        .53663E-06** at limit **
   5  Prefactor     3.5149        11.145        .15062E-05   -.25390E-03
   6  Prefactor     8.7357        14.188        .12035E-05    .48004E-04
   7  Prefactor     .10000E-03    13.086       -.30599E-06** at limit **
   8  norm          3.5519        1.8349        .47028E-07   -.99252E-03
   9  Prefactor     .10002E-03    1.6509       -.31363E-06** at limit **
  10  Prefactor     5.3771        6.8640        .29424E-05   -.55225E-04
  11  norm          .10000E-03    32.685        .18299E-04** at limit **
  12  norm          30.119        17.264        .16891E-07    .11891E-03
  13  Prefactor     1.6552        15.249       -.38983E-05   -.33737E-03
  14  Prefactor     .10000E-03    38.482       -.20913E-04** at limit **
  15  Prefactor     3.3898        119.17       -.16628E-04   -.65329E-04
  16  Prefactor     .10000E-03    6.2726        .60103E-07** at limit **
  17  Prefactor     9.3542        19.317        .85273E-05    .17886E-04
  18  Prefactor     2.4778        7.0702       -.39902E-06   -.34023E-03
  19  Prefactor     2.1011        1.9954       -.51872E-06   -.48206E-03
  20  norm          1.0050        1.4061       -.17945E-06   -.17169E-03
  21  Prefactor     1.9859        24.092       -.13811E-05   -.12851E-03
  22  Prefactor     5.4769        4.1969        .29547E-06   -.15061E-03
  23  Prefactor     1.1076        2.3275       -.39865E-06   -.89613E-03
  24  Normalizat    .64611        .20674       -.25183E-05   -.21701E-04
  25  Prefactor     1.3539        .19608        .54032E-06   -.97920E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.26473
  Prefactor  = 0.0001
  Prefactor  = 20.7431
  Prefactor  = 0.00010121
  Prefactor  = 3.51485
  Prefactor  = 8.73569
  Prefactor  = 0.0001
  norm       = 3.55192
  Prefactor  = 0.000100018
  Prefactor  = 5.37713
  norm       = 0.0001
  norm       = 30.1194
  Prefactor  = 1.65516
  Prefactor  = 0.0001
  Prefactor  = 3.38983
  Prefactor  = 0.0001
  Prefactor  = 9.35418
  Prefactor  = 2.47778
  Prefactor  = 2.10105
  norm       = 1.00501
  Prefactor  = 1.98593
  Prefactor  = 5.47685
  Prefactor  = 1.10763
  Normalizat = 0.646114
  Prefactor  = 1.35392
 **********
 **   18 **HESSE 
 **********

 FCN=   6010.555     FROM HESSE     STATUS=OK           443 CALLS     3041 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.2647        9.4128        .13936E-03   -1.5133    
   2  Prefactor     .10000E-03    1.9309        .20561E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     20.743        9.3662        .87931E-04   -1.4797    
   4  Prefactor     .10121E-03    67.850        .37444E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.5149        10.428        .21467E-03   -1.5333    
   6  Prefactor     8.7357        13.602        .13555E-03   -1.5117    
   7  Prefactor     .10000E-03    13.320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.5519        1.8296        .70515E-04   -1.5331    
   9  Prefactor     .10002E-03    21.368        .18184E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.3771        6.8255        .17326E-03   -1.5244    
  11  norm          .10000E-03    33.625        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          30.119        17.288        .72984E-04   -1.4610    
  13  Prefactor     1.6552        15.495        .32768E-03   -1.5451    
  14  Prefactor     .10000E-03    38.576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.3898        121.42        .21223E-03   -1.5340    
  16  Prefactor     .10000E-03    6.2875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     9.3542        19.151        .13086E-03   -1.5096    
  18  Prefactor     2.4778        7.0570        .25965E-03   -1.5393    
  19  Prefactor     2.1011        1.9799        .98371E-04   -1.5418    
  20  norm          1.0050        1.4054        .54164E-04   -1.5507    
  21  Prefactor     1.9859        24.182        .29362E-03   -1.5426    
  22  Prefactor     5.4769        4.1723        .13078E-03   -1.5240    
  23  Prefactor     1.1076        2.2848        .16380E-03   -1.5497    
  24  Normalizat    .64611        .23556        .31462E-03   -1.0606    
  25  Prefactor     1.3539        .23033        .24008E-03   -.81718    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.92868e-08
Minuit parameter uncertainties:
  1  9.41449
  2  3.58109e-05
  3  9.36686
  4  0.0181428
  5  10.4337
  6  13.6065
  7  5.92539e-05
  8  1.82962
  9  0.00123621
  10  6.82648
  11  0.000116417
  12  17.2907
  13  10.1317
  14  0.000274676
  15  40.6652
  16  7.15238e-06
  17  19.164
  18  7.05933
  19  1.97997
  20  1.40548
  21  13.8664
  22  4.17254
  23  2.28502
  24  0.235929
  25  0.230508
Done.

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

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  1.655e+00  1.013e+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:  1.354e+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.461e-01  2.359e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/783177/likelihoodResults_486345601_486604801_4FGL_J1125.9+2005_daily_bin953.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) = 6010.49531472
delta logL = 0.0594612313262

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6010.42485257
delta logL = 0.129923372655

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.9866       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6279       1.0000          .0000       10.000    
     3 'Normalizat'    .65225       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3442       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=   6010.425     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      285 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.9857        12.510        .16411E-03   -.75510E-05
   2  Index         1.6280        .84997        .14006E-01   -.91708E-04
   3  Normalizat    .65222        .21190        .31319E-03    .31762E-04
   4  Prefactor     1.3442        .22769        .24073E-03    .22905E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.98574
  Index      = 1.62796
  Normalizat = 0.652224
  Prefactor  = 1.34421
 **********
 **   18 **HESSE 
 **********

 FCN=   6010.425     FROM HESSE     STATUS=OK            25 CALLS      310 TOTAL
                     EDM=   .29E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.9857        12.541        .65644E-05   -1.5219    
   2  Index         1.6280        .85243        .28013E-02   -.74016    
   3  Normalizat    .65222        .21204        .12528E-04   -1.0581    
   4  Prefactor     1.3442        .22784        .48146E-04   -.82002    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.93441e-12
Minuit parameter uncertainties:
  1  12.5467
  2  0.860197
  3  0.212301
  4  0.228005
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/783177': 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) = 6010.42485255
delta logL = 0.129923397662

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  5.986e+00  1.255e+01  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  1.628e+00  8.602e-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.344e+00  2.280e-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.522e-01  2.123e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.03
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/783177/cmap_HighResolution_486345601_486604801_4FGL_J1125.9+2005_daily_bin953.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.35e-03', job_status='DONE', photon_flux_upper_limit='8.30e-08', time_completed='2021-09-03 20:44:27.141054', job_id='783177', GAL2='1.34', fit_tolerance='1e-08', EG2='0.65', EG='0.65', time_epoch_completed='1630727067.14', return_code2='0', ts='0.03', comment='SUCCESS', return_code='0', GAL='1.35', dlogl='1.30e-01', ts2='0.29', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='953' AND source_name='4FGL J1125.9+2005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 20:44:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 783177: <4FGL_J1125.9+2005_daily_bin953> in cluster <slac> Done

Job <4FGL_J1125.9+2005_daily_bin953> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Fri Sep  3 20:31:46 2021
Job was executed on host(s) <bullet0243>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 20:32:11 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:32:11 2021
Terminated at Fri Sep  3 20:44:27 2021
Results reported at Fri Sep  3 20:44:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1125.9+2005_daily_bin953 171.491 20.0912 486345601 486604801 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 :                                   716.47 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             331.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   736 sec.
    Turnaround time :                            761 sec.

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

