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


Performing analysis on: 4FGL_J1125.9+2005_daily_bin1005
RA = 171.491, Dec = 20.0912
tmin = 499824001, tmax = 500083201
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='784398', job_status='RUN', time_executed='2021-09-03 20:39:40.677709', time_epoch_executed='1630726780.68' WHERE source_name='4FGL J1125.9+2005' and cadence='daily' and bin_id='1005'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/784398

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/784398/ft1_4FGL_J1125.9+2005_daily_bin1005.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/784398/ft2_4FGL_J1125.9+2005_daily_bin1005.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/784398/ft1_4FGL_J1125.9+2005_daily_bin1005.fits outfile=/scratch/kocevski/784398/ft1_filteredMKT_4FGL_J1125.9+2005_daily_bin1005.fits ra=171.491 dec=20.0912 rad=12.0 tmin=499824001.0 tmax=500083201.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 5.22
user 4.97
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/784398/ft1_filtered_4FGL_J1125.9+2005_daily_bin1005.fits evtable="EVENTS" scfile=/scratch/kocevski/784398/ft2_4FGL_J1125.9+2005_daily_bin1005.fits sctable="SC_DATA" expcube=/scratch/kocevski/784398/ltcube_499824001_500083201_4FGL_J1125.9+2005_daily_bin1005.fits outfile=/scratch/kocevski/784398/expmap_499824001_500083201_4FGL_J1125.9+2005_daily_bin1005.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/784398/ltcube_499824001_500083201_4FGL_J1125.9+2005_daily_bin1005.fits
.....................!
real 192.21
user 186.96
sys 4.63

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/784398/ft1_filtered_4FGL_J1125.9+2005_daily_bin1005.fits scfile=/scratch/kocevski/784398/ft2_4FGL_J1125.9+2005_daily_bin1005.fits outfile=/scratch/kocevski/784398/cmap_499824001_500083201_4FGL_J1125.9+2005_daily_bin1005.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.79
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/784398/ft1_filtered_4FGL_J1125.9+2005_daily_bin1005.fits scfile=/scratch/kocevski/784398/ft2_4FGL_J1125.9+2005_daily_bin1005.fits outfile=/scratch/kocevski/784398/cmap_HighResolution_499824001_500083201_4FGL_J1125.9+2005_daily_bin1005.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.69
user 0.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.5121       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.4797       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.9827       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.3012       1.0000         .10000E-03   10000.    
     8 'norm      '    1.1115       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .88782       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.5160       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10602E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.9458       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .21249E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    5.5962       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.1667       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .94363       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1104       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=   4882.371     FROM MIGRAD    STATUS=CONVERGED    584 CALLS     2956 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.5094       -.32512E-06** at limit **
   2  Prefactor     .10000E-03    1.0766       -.26248E-07** at limit **
   3  Prefactor     7.5121        7.7460        .24783E-06    .26566E-04
   4  Prefactor     8.4787        17.066       -.35202E-06    .49332E-04
   5  Prefactor     2.9821        22.042        .26127E-05    .17870E-03
   6  Prefactor     .10000E-03    5.4107       -.45832E-06** at limit **
   7  Prefactor     3.3027        35.245        .66084E-06    .45122E-04
   8  norm          1.1119        1.3820        .66080E-07    .16391E-03
   9  Prefactor     .10000E-03    1.8009        .10899E-06** at limit **
  10  Prefactor     .10000E-03    3.1883        .55704E-07** at limit **
  11  norm          .81861        33.526       -.85915E-05    .10427E-03
  12  norm          .10000E-03    4.7741        .39658E-06** at limit **
  13  Prefactor     4.5156        11.963        .73631E-06    .11047E-03
  14  Prefactor     .10000E-03    31.746       -.71014E-06** at limit **
  15  Prefactor     .10000E-03    14.194       -.13367E-05** at limit **
  16  Prefactor     .10000E-03    4.7173        .38083E-06** at limit **
  17  Prefactor     5.9463        33.092       -.25046E-05   -.87106E-04
  18  Prefactor     .10000E-03    6.1674        .32391E-06** at limit **
  19  Prefactor     .10003E-03    1.3636       -.52087E-06** at limit **
  20  norm          5.5960        2.5750        .74978E-07   -.86593E-04
  21  Prefactor     .10000E-03    51.338        .12285E-05** at limit **
  22  Prefactor     .10000E-03    3.0319       -.22837E-07** at limit **
  23  Prefactor     8.1674        4.1024        .16348E-06   -.12350E-05
  24  Normalizat    .94366        .20622       -.76729E-06   -.32571E-03
  25  Prefactor     1.1103        .20060       -.37601E-06   -.33870E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.51211
  Prefactor  = 8.47875
  Prefactor  = 2.98206
  Prefactor  = 0.0001
  Prefactor  = 3.30273
  norm       = 1.11193
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.818611
  norm       = 0.0001
  Prefactor  = 4.5156
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.94634
  Prefactor  = 0.0001
  Prefactor  = 0.000100035
  norm       = 5.59595
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.16742
  Normalizat = 0.943658
  Prefactor  = 1.11034
 **********
 **   18 **HESSE 
 **********

 FCN=   4882.371     FROM HESSE     STATUS=OK           427 CALLS     3383 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.5222        .14481E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.0910        .70735E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.5121        7.7550        .14632E-03   -1.5160    
   4  Prefactor     8.4787        16.402        .13766E-03   -1.5126    
   5  Prefactor     2.9821        21.170        .23507E-03   -1.5363    
   6  Prefactor     .10000E-03    5.4077        .15847E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.3027        32.950        .22282E-03   -1.5344    
   8  norm          1.1119        1.3361        .86182E-04   -1.5497    
   9  Prefactor     .10000E-03    1.8392        .91580E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.2009        .12182E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .81861        37.363        .43813E-02   -1.5527    
  12  norm          .10000E-03    4.7909        .14926E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.5156        12.018        .18945E-03   -1.5283    
  14  Prefactor     .10000E-03    32.080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    14.144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.7299        .14834E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.9463        31.040        .16468E-03   -1.5220    
  18  Prefactor     .10000E-03    6.2007        .16954E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10003E-03    14.584        .13875E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          5.5960        2.5713        .71566E-04   -1.5235    
  21  Prefactor     .10000E-03    52.169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.1071        .23739E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     8.1674        4.1110        .96609E-04   -1.5136    
  24  Normalizat    .94366        .24460        .25634E-03   -.94943    
  25  Prefactor     1.1103        .23820        .24977E-03   -.89137    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.54352e-09
Minuit parameter uncertainties:
  1  4.79804e-06
  2  1.46569e-06
  3  7.75604
  4  16.4106
  5  15.8985
  6  4.02927e-06
  7  20.8784
  8  1.33614
  9  9.65796e-06
  10  4.97689e-06
  11  11.0675
  12  1.78813e-05
  13  12.0239
  14  0.000218911
  15  1.66288e-05
  16  1.55094e-05
  17  27.1934
  18  1.3295e-05
  19  0.00142519
  20  2.57133
  21  8.68021e-05
  22  1.81065e-06
  23  4.11114
  24  0.244884
  25  0.238425
Done.

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

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  4.516e+00  1.202e+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.110e+00  2.384e-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.437e-01  2.449e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/784398/likelihoodResults_499824001_500083201_4FGL_J1125.9+2005_daily_bin1005.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) = 4882.36489094
delta logL = 0.00573730190899

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4882.36285888
delta logL = 0.00776936618968

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.4309       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1034       1.0000          .0000       10.000    
     3 'Normalizat'    .94527       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1087       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=   4882.363     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      237 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.4282        15.346        .17243E-03    .69295E-03
   2  Index         2.1034        1.0911        .11076E-01    .24992E-03
   3  Normalizat    .94528        .22145        .25614E-03   -.64633E-03
   4  Prefactor     1.1087        .23331        .24993E-03   -.77865E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.42817
  Index      = 2.10343
  Normalizat = 0.945283
  Prefactor  = 1.10867
 **********
 **   18 **HESSE 
 **********

 FCN=   4882.363     FROM HESSE     STATUS=OK            23 CALLS      260 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.4282        14.766        .68971E-05   -1.5242    
   2  Index         2.1034        1.0511        .44303E-03   -.61789    
   3  Normalizat    .94528        .22158        .51228E-04   -.94887    
   4  Prefactor     1.1087        .23339        .49985E-04   -.89190    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.35238e-09
Minuit parameter uncertainties:
  1  14.7757
  2  1.06308
  3  0.221795
  4  0.233604
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/784398': 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) = 4882.36285885
delta logL = 0.00776939188017

Extracting fit parameters...

4FGL J1125.9+2005
   Spectrum: PowerLaw
314    Prefactor:  5.428e+00  1.478e+01  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.103e+00  1.063e+00  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.109e+00  2.336e-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.453e-01  2.218e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.17
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/784398/cmap_HighResolution_499824001_500083201_4FGL_J1125.9+2005_daily_bin1005.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.29e-03', job_status='DONE', photon_flux_upper_limit='9.53e-08', time_completed='2021-09-03 20:50:57.269820', job_id='784398', GAL2='1.11', fit_tolerance='1e-08', EG2='0.95', EG='0.94', time_epoch_completed='1630727457.27', return_code2='0', ts='0.17', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='7.77e-03', ts2='0.18', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='1005' AND source_name='4FGL J1125.9+2005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 20:50:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 784398: <4FGL_J1125.9+2005_daily_bin1005> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1125.9+2005_daily_bin1005 171.491 20.0912 499824001 500083201 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 :                                   670.28 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             303.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   875 sec.
    Turnaround time :                            891 sec.

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

